Categories
Technology

Example curl JSON POST

A reminder to myself on how to craft a JSON POST using cURL.

curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d "{'json':{'data':'here'}}" http://theurl.com/to/post/to

A good reference link.