title: Cannot use nova through curl, Authentication required
body: <p>I am using ubuntu 12.04 and running openstack, I have set the enviroment variables for nova-api to work from command line i.e. <strong>nova list</strong> , <strong>nova flavor-list</strong>  <strong>etc</strong> are working perfectly, but when I try to use curl:</p>
  
  <pre><code>curl -i  http://192.168.1.130:8774/v2/f0c12be83d214d8a9d87ae731dd81ec1/images/detail -X
  GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -
  H"Accept:application/json" -H "X-Auth-Token: XXXXX" 
  </code></pre>
  
  <p>the <strong>Response</strong> is: </p>
  
  <pre><code>HTTP/1.1 401 Unauthorized
  Www-Authenticate: Keystone uri='http://192.168.1.130:35357'
  Content-Type: text/plain
  Content-Length: 23
  Date: Sat, 19 Oct 2013 12:13:05 GMT
  Authentication required
  </code></pre>
  
  <p>Envs are:</p>
  
  <pre><code>export OS_USERNAME=admin
  export OS_PASSWORD=openstack
  export OS_AUTH_URL=http:192.168.1.130:35357/v2.0
  export OS_TENANT_NAME=admin
  </code></pre>
  
  <p>Can anyone help me with this?</p>