Send Custom Headers With Curl Command

This page shows how to send a Curl command with custom request headers.

Curl is a popular command-line tool for transferring data to or from a server. ReqBin supports the basic Curl commands for working with the HTTP/s protocol. For security reasons, all command-line options for working with files are ignored.

Curl Request Examples

GET Url Live Request

POST JSON Live Request
curl -H "Content-Type: application/json" -d '{"login":"login","password":"password"}' -X POST

Bearer Token Authorization Live Request
curl -H "Accept: application/json" -H "Authorization: Bearer my_token"

POST Form Live Request
curl -H "Content-Type: application/x-www-form-urlencoded" -d "param1=value1&param2=value2" -X POST

Basic Server Authentication Live Request
curl --user "login:password"

Send Custom Headers Live Request
curl -H "Cache-Control: no-cache, no-store, must-revalidate" -H "Pragma: no-cache" -H "Expires: 0"

Popular Request Methods:


ReqBin is powered by HTTP Debugger Team