Skip to content

Instantly share code, notes, and snippets.

@hemalich
Created April 27, 2011 08:15
Show Gist options
  • Save hemalich/943901 to your computer and use it in GitHub Desktop.
Save hemalich/943901 to your computer and use it in GitHub Desktop.
curl -i "http://localhost:3000/items" -H "Accept:application/json"
HTTP/1.1 200 OK
X-Ua-Compatible: IE=Edge
Etag: "579a54772674bf702106c51fc48d9d2b"
Connection: Keep-Alive
Content-Type: application/json; charset=utf-8
Date: Fri, 08 Apr 2011 08:50:52 GMT
Server: WEBrick/1.3.1 (Ruby/1.8.7/2008-08-11)
X-Runtime: 0.655732
Content-Length: 241
Cache-Control: max-age=0, private, must-revalidate
[{"item":{"name":"Pendrive","price":500,"created_at":"2011-02-20T08:23:39Z","updated_at":"2011-02-20T08:23:39Z","id":1}},{"item":{"name":"Laptop","price":25000,"created_at":"2010-02-20T08:23:39Z","updated_at":"2010-02-20T08:23:39Z","id":2}}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment