Created
June 9, 2015 17:53
-
-
Save conradwt/5f6ca01c5a373222c032 to your computer and use it in GitHub Desktop.
Blocmetrics Checkpoint [6]: Info. Curl Response
This file contains hidden or 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
$ curl -v -H "Accept: application/json" -H "Origin: http://registered_application.com" -H "Content-Type: application/json" -X POST -d '{"name":"foobar"}' http://localhost:3000/api/events | |
* Trying ::1... | |
* Connected to localhost (::1) port 3000 (#0) | |
> POST /api/events HTTP/1.1 | |
> Host: localhost:3000 | |
> User-Agent: curl/7.42.1 | |
> Accept: application/json | |
> Origin: http://registered_application.com | |
> Content-Type: application/json | |
> Content-Length: 17 | |
> | |
* upload completely sent off: 17 out of 17 bytes | |
< HTTP/1.1 201 Created | |
< X-Frame-Options: SAMEORIGIN | |
< X-Xss-Protection: 1; mode=block | |
< X-Content-Type-Options: nosniff | |
< Content-Type: application/json; charset=utf-8 | |
< Etag: W/"ef2575f9d89012b430ef3e97fe23e093" | |
< Cache-Control: max-age=0, private, must-revalidate | |
< X-Request-Id: a78bc381-d3ff-4dd8-9f86-4b7e150a07c6 | |
< X-Runtime: 0.008466 | |
< Server: WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13) | |
< Date: Tue, 09 Jun 2015 17:50:38 GMT | |
< Content-Length: 150 | |
< Connection: Keep-Alive | |
< Set-Cookie: request_method=POST; path=/ | |
< Set-Cookie: __profilin=p%3Dt; path=/ | |
< Set-Cookie: __profilin=p%3Dt; path=/ | |
< | |
* Connection #0 to host localhost left intact | |
{"id":36,"name":"foobar","registered_application_id":1,"created_at":"2015-06-09T17:50:38.476Z","updated_at":"2015-06-09T17:50:38.476Z","user_id":null} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment