Skip to content

Instantly share code, notes, and snippets.

@JurrianFahner
Last active October 16, 2015 21:00
Show Gist options
  • Save JurrianFahner/8cf1827b7184769ab411 to your computer and use it in GitHub Desktop.
Save JurrianFahner/8cf1827b7184769ab411 to your computer and use it in GitHub Desktop.
curl post data json
curl --silent -i -H "Content-Type: application/json" -X POST -d "{\"json\": {\"data\":\"here\"}}" http://theurl.com/to/post/to | tail -n 1 | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment