Skip to content

Instantly share code, notes, and snippets.

@sweenzor
Last active December 14, 2015 07:29
Show Gist options
  • Save sweenzor/5051147 to your computer and use it in GitHub Desktop.
Save sweenzor/5051147 to your computer and use it in GitHub Desktop.
POST json file to endpoint using curl
curl -i -H "Accept: application/json" -H "Content-type: application/json" --data @test.json http://localhost:5033/match
curl -i -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"key":1}' http://localhost:4449/tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment