Skip to content

Instantly share code, notes, and snippets.

@vickeryj
Created February 24, 2009 17:47
Show Gist options
  • Save vickeryj/69679 to your computer and use it in GitHub Desktop.
Save vickeryj/69679 to your computer and use it in GitHub Desktop.
some curl output:
j-macbook:~ vickeryj$curl -H "Content-Type: application/json" -X POST -d '{"user":{ "password": "password", "email_address": "josh@vickeryj.com"}}' "http://localhost:3000/users" -D -</pre>
HTTP/1.1 200 OK
Connection: close
Date: Tue, 24 Feb 2009 17:39:11 GMT
Set-Cookie: _curse-counter=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsABjoKQHVzZWR7AA%3D%3D--b93fd7ebe21e983a19428d6802cae9a452ff92d1; path=/
Status: 200 OK
X-Runtime: 0.01377
ETag: "7215ee9c7d9dc229d2921a40e899ec5f"
Cache-Control: private, max-age=0, must-revalidate
Server: Mongrel 1.1.4
Content-Type: text/html; charset=utf-8
Content-Length: 1
j-macbook:~ vickeryj$ curl -H "Content-Type: application/json" -X POST -d '{"user":{ "password": "password", "email_address": "josh@vickeryj.com"}}' "http://cursecounter.com/users" -D -
HTTP/1.1 500 Internal Server Error
Date: Tue, 24 Feb 2009 17:39:38 GMT
Server: Mongrel 1.1.5
Set-Cookie: _curse-counter=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsABjoKQHVzZWR7AA%3D%3D--b93fd7ebe21e983a19428d6802cae9a452ff92d1; path=/
Status: 500 Internal Server Error
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Content-Length: 947
Vary: User-Agent
Connection: close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment