Fill these in once
- GET a page or API
curl https://api.example.com/users - POST JSON
curl -X POST -H "Content-Type: application/json" -d '{"name":"Ada"}' https://api.example.com/users - Send a header (for example a token)
curl -H "Authorization: Bearer your-token" https://api.example.com/users - Save the response to a file
curl -o response.json https://api.example.com/users - Show only the response headers
curl -I https://api.example.com/users - Follow redirects
curl -L https://api.example.com/users - Time the request
curl -s -o /dev/null -w "total: %{time_total}s\n" https://api.example.com/users
- GET a page or API
curl https://api.example.com/users - POST JSON
curl -X POST -H "Content-Type: application/json" -d '{"name":"Ada"}' https://api.example.com/users - Send a header (for example a token)
curl -H "Authorization: Bearer your-token" https://api.example.com/users - Save the response to a file
curl -o response.json https://api.example.com/users - Show only the response headers
curl -I https://api.example.com/users - Follow redirects
curl -L https://api.example.com/users - Time the request
curl -s -o /dev/null -w "total: %{time_total}s\n" https://api.example.com/users
- GET a page or API
curl.exe https://api.example.com/users - POST JSON
curl.exe -X POST -H "Content-Type: application/json" -d "@data.json" https://api.example.com/users - Send a header (for example a token)
curl.exe -H "Authorization: Bearer your-token" https://api.example.com/users - Save the response to a file
curl.exe -o response.json https://api.example.com/users - Show only the response headers
curl.exe -I https://api.example.com/users - Follow redirects
curl.exe -L https://api.example.com/users - Time the request
curl.exe -s -o NUL -w "total: %{time_total}s\n" https://api.example.com/users