MSNCodeSNIPPETS← msncode.dev
snippets/curl

POST JSON with curl

Send a POST request with JSON body

curlbashpostjson
BASH
curl -X POST https://api.example.com \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}'

More curl snippets

Download File with Progress

Download a file and show progress bar

Follow Redirects

Automatically follow HTTP redirects

Save Response Headers

Dump response headers to a file

Set Custom Headers

Add authorization or custom headers