<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi<div>in order to work with curl : </div><div><b> curl -v -H "X-Auth-User: user" -H "X-Auth-key: KEY" <a href="http://IP:PORT/API_VERSION/">http://IP:PORT/API_VERSION/</a></b></div><div><b><br></b></div><div><b>-v : verbose</b></div><div><b>-H : headers</b></div><div><b>http : ip to request.</b></div><div><b><br></b></div><div>I myself use that awesome tool to debug and work on my environments :</div><div><a href="http://code.google.com/p/rest-client/">http://code.google.com/p/rest-client/</a></div><div><br></div><div>Razique</div><div><br></div><div><div><div>Le 20 oct. 2011 à 04:50, DeadSun a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">Then how to use curl to test?<br><br><div class="gmail_quote">On Wed, Oct 19, 2011 at 4:15 PM, Razique Mahroua <span dir="ltr"><<a href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">Hi Roman, <div>which version of Keystone are you using ?</div><div>The auth. scheme has changed recently. Here is a working set with the last version : </div>
<div><br></div><div><div>{"auth": </div><div>    {"tenantName": "service_usage", "passwordCredentials": </div><div>        <span style="white-space:pre-wrap">    </span>{"username": "service_usage", "password": "P@ssword"}</div>
<div>    }</div><div>}</div><div><br></div><div>As you see the passwordCrendentials is embeded into an auth section</div><div>Regards,</div><div>Razique</div><div><br></div><div><div>Le 19 oct. 2011 à 10:10, Roman Sokolkov a écrit :</div>
<br><blockquote type="cite"><div><div class="h5"><div>Hi!</div><div><br></div><div>I ve installed keystone</div><div><br></div><div>but when I try to</div><div><br></div><div><b>curl -d '{"passwordCredentials":{"username": "admin", "password": "P@ssword"}}' -H "Content-type: application/json" <a href="http://localhost:35357/v2.0/tokens" target="_blank">http://localhost:35357/v2.0/tokens</a></b></div>

<div><br></div><div>I ve received</div><div><br></div><div><b>{"badRequest": {"message": "Expecting auth", "code": "400"}}</b></div><div><br></div>-- <br>Regards, Roman Sokolkov<br>
</div></div>

_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>非淡薄无以明志,非宁静无以致远<br>
</blockquote></div><br></div></body></html>