Created
November 9, 2012 16:59
-
-
Save dpgoetz/4046852 to your computer and use it in GitHub Desktop.
account OPTIONS call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This allows people to find out if an account is valid in swift (used to always just 401) | |
dfg@ubuntu:~/swift/swift$ curl -i http://127.0.0.1:8080/v1/AUTH_dfg -X OPTIONS | |
HTTP/1.1 200 OK | |
Allow: HEAD, GET, PUT, POST, OPTIONS, DELETE | |
Content-Length: 0 | |
Date: Fri, 09 Nov 2012 16:55:42 GMT | |
dfg@ubuntu:~/swift/swift$ curl -i http://127.0.0.1:8080/v1/asdf -X OPTIONS | |
HTTP/1.1 401 Unauthorized | |
Content-Length: 131 | |
Content-Type: text/html | |
Date: Fri, 09 Nov 2012 16:55:48 GMT | |
<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