curl Cheat Sheet — HTTP Requests & API Testing Commands

Complete curl command reference for API testing, file downloads, headers, authentication, and more. Interactive curl cheat sheet with copy-ready examples. Free.

Help Us Improve
Be the first to rate!

Frequently Asked Questions

How do I make a POST request with curl?
curl -X POST https://api.example.com/endpoint -H 'Content-Type: application/json' -d '{"key":"value"}'
Is curl Cheat Sheet free?
Yes, curl Cheat Sheet on ToolPix is 100% free with no signup or installation required.
Is my data safe?
This is a static reference tool. No data is entered or transmitted.
How do I add an Authorization header with curl?
curl -H 'Authorization: Bearer YOUR_TOKEN' https://api.example.com — or use -H 'x-api-key: KEY' for API key auth.
How do I download a file with curl?
curl -O https://example.com/file.zip downloads to the current directory with the original filename. Use -o myname.zip to specify the output filename.