Skip to content

Instantly share code, notes, and snippets.

@wjessop
Created December 30, 2012 21:24
Show Gist options
  • Save wjessop/4415307 to your computer and use it in GitHub Desktop.
Save wjessop/4415307 to your computer and use it in GitHub Desktop.
[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 200 OK
< Content-Type: application/json; charset=utf-8
< X-Ua-Compatible: IE=Edge
< Etag: "b091e4992ee7e64e87ecb6b0156700e8"
< Cache-Control: max-age=0, private, must-revalidate
< X-Request-Id: f45c1aee1eba0a4a6ec96aca189a3ad5
< X-Runtime: 0.072971
< Content-Length: 15
< Server: WEBrick/1.3.1 (Ruby/1.9.3/2012-10-12)
< Date: Sun, 30 Dec 2012 21:08:51 GMT
< Connection: Keep-Alive
<
* Connection #0 to host localhost left intact
{"blah":"blah"}* Closing connection #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment