API
cURL Cheat Sheet
Handy curl flags for HTTP debugging. Generate or convert curl commands with FreeToolMate — conversion stays in your browser.
Basics
curl https://api.example.com/health
curl -X POST https://api.example.com/items \
-H "Content-Type: application/json" \
-d '{"name":"Ada"}'
Useful flags
-X— HTTP method (GET, POST, PUT, DELETE, …)-H— request header-d/--data— request body-u user:pass— basic auth-i— include response headers-v— verbose connection details-L— follow redirects-o file— write body to a file-w— custom output format (timing, status)
Auth examples
curl -H "Authorization: Bearer TOKEN" https://api.example.com/me curl -u api:secret https://api.example.com/v1/report
FreeToolMate cURL tools
- cURL Generator — build a command from URL, method, headers, and body
- cURL to JavaScript
- cURL to Python
- cURL to PHP
- cURL to Java
- cURL to Go
- cURL to C#