Skip to content

Instantly share code, notes, and snippets.

@sarcilav
Created February 22, 2014 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarcilav/9163548 to your computer and use it in GitHub Desktop.
Save sarcilav/9163548 to your computer and use it in GitHub Desktop.
curl -v http://quiet-journey-7568.herokuapp.com/registers.json -X POST -H "Content-Type: application/json" -d '{"lng": "-32.323", "lat": "114.133111", "imei": "loa0"}'
* Adding handle: conn: 0x7fe4ab803a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fe4ab803a00) send_pipe: 1, recv_pipe: 0
* About to connect() to quiet-journey-7568.herokuapp.com port 80 (#0)
* Trying 23.23.214.121...
* Connected to quiet-journey-7568.herokuapp.com (23.23.214.121) port 80 (#0)
> POST /registers.json HTTP/1.1
> User-Agent: curl/7.30.0
> Host: quiet-journey-7568.herokuapp.com
> Accept: */*
> Content-Type: application/json
> Content-Length: 55
>
* upload completely sent off: 55 out of 55 bytes
< HTTP/1.1 201 Created
< Cache-Control: max-age=0, private, must-revalidate
< Content-Type: application/json; charset=utf-8
< Date: Sat, 22 Feb 2014 22:45:37 GMT
< Etag: "47384b6b5f5982d9f5421930eae0195d"
< Location: http://quiet-journey-7568.herokuapp.com/registers/161
* Server WEBrick/1.3.1 (Ruby/2.0.0/2013-11-22) is not blacklisted
< Server: WEBrick/1.3.1 (Ruby/2.0.0/2013-11-22)
< X-Rack-Cache: invalidate, pass
< X-Request-Id: ccc72360-0735-4d14-a4ff-f4dbf94c276d
< X-Runtime: 0.206352
< X-Ua-Compatible: IE=Edge,chrome=1
< Content-Length: 131
< Connection: keep-alive
<
* Connection #0 to host quiet-journey-7568.herokuapp.com left intact
{"created_at":"2014-02-22T22:45:37Z","device_id":9,"id":161,"lat":"114.133111","lng":"-32.323","updated_at":"2014-02-22T22:45:37Z"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment