Skip to content

Instantly share code, notes, and snippets.

Created June 25, 2014 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a07ae42317eb7350cf8a to your computer and use it in GitHub Desktop.
Save anonymous/a07ae42317eb7350cf8a to your computer and use it in GitHub Desktop.
THIS COMMAND :
curl -v -H 'X-Storage-User: system:root' -H 'X-Storage-Pass: testpass' http://94.23.34.79:8080/auth/v1.0
RETURN :
* Hostname was NOT found in DNS cache
* Trying 94.23.34.79...
* Connected to 94.23.34.79 (94.23.34.79) port 8080 (#0)
> GET /auth/v1.0 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 94.23.34.79:8080
> Accept: */*
> X-Storage-User: system:root
> X-Storage-Pass: testpass
>
< HTTP/1.1 200 OK
< X-Storage-Url: http://94.23.34.79:8080/v1/AUTH_system
< X-Auth-Token: AUTH_tkbef158f2830747a7a482f803decacfbc
< Content-Type: text/html; charset=UTF-8
< X-Storage-Token: AUTH_tkbef158f2830747a7a482f803decacfbc
< Content-Length: 0
< X-Trans-Id: tx6a640152b58b43feb0c4b-0053aa9dc1
< Date: Wed, 25 Jun 2014 10:00:33 GMT
<
* Connection #0 to host 94.23.34.79 left intact
THIS COMMAND :
curl -v -H ‘X-Auth-Token: AUTH_tkbef158f2830747a7a482f803decacfbc’ http://94.23.34.79:8080/v1/AUTH_system
RETURN :
* Hostname was NOT found in DNS cache
* Trying 94.23.34.79...
* Connected to 94.23.34.79 (94.23.34.79) port 8080 (#0)
> GET /v1/AUTH_system HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 94.23.34.79:8080
> Accept: */*
> X-Auth-Token: AUTH_tk0966b8c1c29340fba36e8b90dcfb3a94
>
< HTTP/1.1 401 Unauthorized
< Content-Length: 131
< Content-Type: text/html; charset=UTF-8
< Www-Authenticate: Swift realm="AUTH_system"
< X-Trans-Id: txf7d41f871b724c59ab313-0053aa9e71
< Date: Wed, 25 Jun 2014 10:03:29 GMT
<
* Connection #0 to host 94.23.34.79 left intact
<html><h1>Unauthorized</h1><p>This server could not verify that you are authorized to access the document you requested.</p></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment