Created
December 30, 2012 21:23
-
-
Save wjessop/4415305 to your computer and use it in GitHub Desktop.
This file contains 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
[1.9.3] ~/www/demo $ curl -v -d auth_token=8ygqnnCEyVvj9qkdX63W http://localhost:3000/foo.json | |
* About to connect() to localhost port 3000 (#0) | |
* Trying ::1... | |
* Connection refused | |
* Trying 127.0.0.1... | |
* connected | |
* Connected to localhost (127.0.0.1) port 3000 (#0) | |
> POST /foo.json HTTP/1.1 | |
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 | |
> Host: localhost:3000 | |
> Accept: */* | |
> Content-Length: 31 | |
> Content-Type: application/x-www-form-urlencoded | |
> | |
* upload completely sent off: 31 out of 31 bytes | |
< HTTP/1.1 401 Unauthorized | |
< Content-Type: application/json; charset=utf-8 | |
< X-Ua-Compatible: IE=Edge | |
< Cache-Control: no-cache | |
< X-Request-Id: 5afa258a30b6d1313e8473fe0b67abce | |
< X-Runtime: 0.391197 | |
< Content-Length: 61 | |
< Server: WEBrick/1.3.1 (Ruby/1.9.3/2012-10-12) | |
< Date: Sun, 30 Dec 2012 21:08:50 GMT | |
< Connection: Keep-Alive | |
< | |
* Connection #0 to host localhost left intact | |
{"error":"You need to sign in or sign up before continuing."}* Closing connection #0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment