Curl
curl is a command line tool to transfer data to or from a server.
Send a request with payload
curl -X POST http://example.com -d '{"data": "value"}'
Escape characters
curl -X POST http://example.com -d '{\"data\": \"value\"}'
Send URL encoded data
curl -X POST http://example.com --data-urlencode 'data=value'
Multi line command
curl -X POST http://example.com \
-d '{\"data\": \"value\"}' \
-H 'Content-Type: application/json' \
| jq