title: How to post JSON data using curl over basic http auth?
body: <p>I want to post data using curl unix command what I got by googling is doing like below:</p>
  
  <pre><code>curl --dump-header - -H "Content-Type: application/json"  -X POST --data '{"description": "This will prbbly be my lst post.", "transaction_id": "2011-05-22T00:46:38", "account": "another-post"}' http://127.0.0.1:8000/api/transaction/
  </code></pre>
  
  <p>But its is returning following response header like below:</p>
  
  <pre><code>curl: (6) Could not resolve host: POST; nodename nor servname provided, or not known
  HTTP/1.0 401 UNAUTHORIZED
  Date: Sat, 09 Jun 2012 18:50:37 GMT
  Server: WSGIServer/0.1 Python/2.7.1
  Content-Type: text/html; charset=utf-8
  </code></pre>
  
  <p>What I am doing wrong</p>