In step 4, try: curl -k -i -H "X-Auth-Token: $XT" -X PUT $XU/test-container ________________________________ From: e.testingcloud <e.testingcloud at tid.es> To: "openstack-operators at lists.openstack.org" <openstack-operators at lists.openstack.org> Sent: Monday, June 27, 2011 2:46 AM Subject: [Openstack-operators] Problem using Curl with Swift. Hi. I'm doing test with Swift and Curl and I have the next problem. 1. I create the user. swauth-add-user -A http://192.168.8.106:8080/auth/ -K beto -a openstack tester2 testerpass2 2. I get the X-Storage-Url and X-Auth-Token curl -k -v -H 'X-Storage-User: openstack:tester2' -H 'X-Storage-Pass: testerpass2' http://192.168.8.106:8080/auth/v1.0 * About to connect() to 192.168.8.106 port 8080 (#0) * Trying 192.168.8.106... connected * Connected to 192.168.8.106 (192.168.8.106) port 8080 (#0) > GET /auth/v1.0 HTTP/1.1 > 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 > Host: 192.168.8.106:8080 > Accept: */* > X-Storage-User: openstack:tester2 > X-Storage-Pass: testerpass2 > < HTTP/1.1 200 OK < X-Storage-Url: https://127.0.0.1:8080/v1/AUTH_41bd9ba4-60bc-4b45-bc00-298bac9ba239 < X-Storage-Token: AUTH_tkaf8d1d9b65174e77a57e9493775aaa14 < X-Auth-Token: AUTH_tkaf8d1d9b65174e77a57e9493775aaa14 < Content-Length: 113 < Date: Mon, 27 Jun 2011 09:26:12 GMT < * Connection #0 to host 192.168.8.106 left intact * Closing connection #0 {"storage": {"default": "local", "local": "https://127.0.0.1:8080/v1/AUTH_41bd9ba4-60bc-4b45-bc00-298bac9ba239"}} 3. environtment export XU="https://127.0.0.1:8080/v1/AUTH_41bd9ba4-60bc-4b45-bc00-298bac9ba239" export XT="AUTH_tkaf8d1d9b65174e77a57e9493775aaa14" 4. Create a container. curl -k -i -H "$XT" -X PUT $XU/test-container HTTP/1.1 401 Unauthorized Content-Length: 358 Content-Type: text/html; charset=UTF-8 Date: Mon, 27 Jun 2011 09:42:40 GMT <html> <head> <title>401 Unauthorized</title> </head> <body> <h1>401 Unauthorized</h1> 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 /> </body> </html> Always I get the same error. I'm not authorized, but the X-Auth-Token and X-Storage-Url are correct. Somebody can help me please? Thanks in advance. 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. This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at. http://www.tid.es/ES/PAGINAS/disclaimer.aspx _______________________________________________ Openstack-operators mailing list Openstack-operators at lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20110627/177764c6/attachment-0002.html>