Skip to content

Instantly share code, notes, and snippets.

@zackmdavis
Created March 6, 2014 03:06
Show Gist options
  • Save zackmdavis/9381504 to your computer and use it in GitHub Desktop.
Save zackmdavis/9381504 to your computer and use it in GitHub Desktop.
I'm having trouble verifying the container creation with cURL; as before, I can auth, but I can't do anything else. Not sure what I'm doing wrong ...
curl -v -H 'X-Auth-User: test:tester' -H 'X-Auth-Key: testing' http://localhost:8080/auth/v1.0/
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
> GET /auth/v1.0/ HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost:8080
> Accept: */*
> X-Auth-User: test:tester
> X-Auth-Key: testing
>
< HTTP/1.1 200 OK
< X-Storage-Url: http://localhost:8080/v1/AUTH_test
< X-Auth-Token: AUTH_tk9a227572ba1841d98c248c5a9f7f3999
< Content-Type: text/html; charset=UTF-8
< X-Storage-Token: AUTH_tk9a227572ba1841d98c248c5a9f7f3999
< Content-Length: 0
< X-Trans-Id: txc3423dccbf4d4ffeba680-005317e3bc
< Date: Thu, 06 Mar 2014 02:55:56 GMT
<
* Connection #0 to host localhost left intact
* Closing connection #0
vagrant@precise-node:/etc/swift$ !253
curl -v -H 'X-Storage-Token: AUTH_tk9a227572ba1841d98c248c5a9f7f3999' -X PUT http://localhost:8080/v1/AUTH_test/container
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
> PUT /v1/AUTH_test/container HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost:8080
> Accept: */*
> X-Storage-Token: AUTH_tk9a227572ba1841d98c248c5a9f7f3999
>
< HTTP/1.1 404 Not Found
< Content-Length: 70
< Content-Type: text/html; charset=UTF-8
< X-Trans-Id: tx00c5a6bd3c804c51af512-005317e3ca
< Date: Thu, 06 Mar 2014 02:56:10 GMT
<
* Connection #0 to host localhost left intact
* Closing connection #0
<html><h1>Not Found</h1><p>The resource could not be found.</p></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment