Useful Curl commands
Useful CURL commands with examples
Send Post request:
curl --data "key1=value1&key2=value2" http://site.com
Send JSON data:
curl -H 'Content-Type: application/json' --data '{"param1":"test1","param2":"test2"}' http://test.com
Get status code:
curl -s -o /dev/null -w "%{http_code}" http://www.example.org/