<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>In step 4, try:</span></div><div><span><br></span></div><div><span><div>curl -k -i -H "X-Auth-Token: $XT" -X PUT $XU/test-container</div><div><br></div></span></div><div><br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> e.testingcloud <e.testingcloud@tid.es><br><b><span style="font-weight: bold;">To:</span></b> "openstack-operators@lists.openstack.org" <openstack-operators@lists.openstack.org><br><b><span style="font-weight: bold;">Sent:</span></b> Monday, June 27, 2011 2:46 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [Openstack-operators] Problem using Curl with
 Swift.<br></font><br>
Hi.<br><br>I'm doing test with Swift and Curl and I have the next problem.<br><br>1. I create the user.<br><br> swauth-add-user -A http://192.168.8.106:8080/auth/ -K beto -a openstack tester2 testerpass2<br><br>2. I get the X-Storage-Url and X-Auth-Token<br><br> curl -k -v -H 'X-Storage-User: openstack:tester2' -H 'X-Storage-Pass: testerpass2' <a href="http://192.168.8.106:8080/auth/v1.0" target="_blank" >http://192.168.8.106:8080/auth/v1.0
</a><br>* About to connect() to 192.168.8.106 port 8080 (#0)<br>*   Trying 192.168.8.106... connected<br>* Connected to 192.168.8.106 (192.168.8.106) port 8080 (#0)<br>> GET /auth/v1.0 HTTP/1.1<br>> User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15<br>> Host: 192.168.8.106:8080<br>> Accept: */*<br>> X-Storage-User: openstack:tester2<br>> X-Storage-Pass: testerpass2<br>><br>< HTTP/1.1 200 OK<br>< X-Storage-Url: <a href="https://127.0.0.1:8080/v1/AUTH_41bd9ba4-60bc-4b45-bc00-298bac9ba239" target="_blank" >https://127.0.0.1:8080/v1/AUTH_41bd9ba4-60bc-4b45-bc00-298bac9ba239
</a><br>< X-Storage-Token: AUTH_tkaf8d1d9b65174e77a57e9493775aaa14<br>< X-Auth-Token: AUTH_tkaf8d1d9b65174e77a57e9493775aaa14<br>< Content-Length: 113<br>< Date: Mon, 27 Jun 2011 09:26:12 GMT<br><<br>* Connection #0 to host 192.168.8.106 left intact<br>* Closing connection #0<br>{"storage": {"default": "local", "local": "<a href="https://127.0.0.1:8080/v1/AUTH_41bd9ba4-60bc-4b45-bc00-298bac9ba239" target="_blank" >https://127.0.0.1:8080/v1/AUTH_41bd9ba4-60bc-4b45-bc00-298bac9ba239</a>"}}<br><br>3. environtment<br><br>export XU="<a href="https://127.0.0.1:8080/v1/AUTH_41bd9ba4-60bc-4b45-bc00-298bac9ba239" target="_blank" >https://127.0.0.1:8080/v1/AUTH_41bd9ba4-60bc-4b45-bc00-298bac9ba239</a>"<br>export XT="AUTH_tkaf8d1d9b65174e77a57e9493775aaa14"<br><br>4. Create a container.<br><br>curl -k -i -H "$XT" -X PUT $XU/test-container<br>HTTP/1.1 401 Unauthorized<br>Content-Length: 358<br>Content-Type: text/html; charset=UTF-8<br>Date: Mon, 27
 Jun 2011 09:42:40 GMT<br><br><html><br> <head><br>  <title>401 Unauthorized</title><br> </head><br> <body><br>  <h1>401 Unauthorized</h1><br>  This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br /><br /><br><br><br><br> </body><br></html><br><br><br>Always I get the same error. I'm not authorized, but the X-Auth-Token and X-Storage-Url are correct.<br>Somebody can help me please?<br><br>Thanks in advance.<br><br>Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo.<br>This message is intended exclusively for its addressee. We only send and receive email on the basis of the
 terms set out at.<br><a href="http://www.tid.es/ES/PAGINAS/disclaimer.aspx" target="_blank">http://www.tid.es/ES/PAGINAS/disclaimer.aspx
</a><br>_______________________________________________<br>Openstack-operators mailing list<br><a ymailto="mailto:Openstack-operators@lists.openstack.org" href="mailto:Openstack-operators@lists.openstack.org">Openstack-operators@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators<br><br><br></div></div></div></body></html>