Skip to content

Instantly share code, notes, and snippets.

@virullius
Created March 16, 2015 14:20
Show Gist options
  • Save virullius/d250aae0b4e86cdd7015 to your computer and use it in GitHub Desktop.
Save virullius/d250aae0b4e86cdd7015 to your computer and use it in GitHub Desktop.
POST with curl
# as commonly seen elsewhere, -X POST is unneccesary because --data triggers POST method to be used
curl --header "Content-Type: application/json" --data "[\"Testing\":\"Logging\"}" http://example.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment