MSNCodeSNIPPETS← msncode.dev
snippets/curl

Set Custom Headers

Add authorization or custom headers

curlbashheaderauth
BASH
curl -H "Authorization: Bearer TOKEN" \
  -H "Accept: application/json" \
  https://api.example.com

More curl snippets

Download File with Progress

Download a file and show progress bar

Follow Redirects

Automatically follow HTTP redirects

POST JSON with curl

Send a POST request with JSON body

Save Response Headers

Dump response headers to a file