Skip to content

Instantly share code, notes, and snippets.

@Bat-Chat
Last active January 23, 2016 18:08
Show Gist options
  • Save Bat-Chat/2569ef479f2a10cc74b3 to your computer and use it in GitHub Desktop.
Save Bat-Chat/2569ef479f2a10cc74b3 to your computer and use it in GitHub Desktop.
curl 'http://rest/v1/posts/2' -X DELETE -H 'Access-Control-Request-Method: DELETE' -H 'Origin: http://site' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36' -H 'Accept: */*' -H 'Referer: http://site/client/' -H 'Connection: keep-alive' -H 'Access-Control-Request-Headers: accept' --compressed
curl http://rest/create -H "Content-Type: application/json" -X POST -d '{"username":"xyz","password":"xyz"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment