Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ curl 'http://hostname:8080/v1/user/endpoint' -X POST -H 'Authorization: Bearer ...' -H 'Content-Type: application/json;charset=utf-8' -H 'Origin: http://127.0.0.1:9000' -d '{"test":"sample"}' -v
- > POST /v1/user/endpoint HTTP/1.1
- > User-Agent: curl/7.32.0
- > Accept: */*
- > Authorization: Bearer ...
- > Content-Type: application/json;charset=utf-8
- > Origin: http://127.0.0.1:9000
- > Content-Length: 100
- >
- * upload completely sent off: 100 out of 100 bytes
- < HTTP/1.1 200 OK
- < Connection: keep-alive
- < Transfer-Encoding: chunked
- < Content-Type: application/json
- < Date: Thu, 03 Apr 2014 14:05:27 GMT
- <
- {"result":"success"}
Advertisement
Add Comment
Please, Sign In to add comment