Skip to content

Instantly share code, notes, and snippets.

@vgk77
Last active February 1, 2019 11:27
Show Gist options
  • Select an option

  • Save vgk77/9c6cedb9d8a0a759fa66e465f088d323 to your computer and use it in GitHub Desktop.

Select an option

Save vgk77/9c6cedb9d8a0a759fa66e465f088d323 to your computer and use it in GitHub Desktop.
#curl queries
#GET
curl "uri?key1=value1&key2=value2"
#POST
curl -d "key1=value1&key2=value2" "uri"
#DELETE
curl -X DELETE "uri"
#POST request.json with headers
curl -d “@request.json” -H “Content-Type: application/json” -H “Authentication: XXX” "uri"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment