Show response headers only curl
Print HTTP response headers without body
curl -sI https://example.com
more curl
all 21 commands →
Upload file multipart
curl -F 'file=@./report.pdf' -F 'user=alice' https://upload.example.com/api
HTTP/2 request
curl --http2 -sI https://example.com | grep -i 'http\|alt-svc'
Set custom DNS resolver
curl --resolve example.com:443:1.2.3.4 https://example.com
Retry on failure
curl --retry 5 --retry-delay 2 --retry-all-errors https://api.example.com/healthz
POST form data
curl -d 'user=alice&pass=secret' -X POST https://auth.example.com/login