Curl Command With Basic Server Authentication Header

This page shows how to send a GET request to a URL and provide credentials for basic server authentication in 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
curl https://reqbin.com


POST JSON Live Request
curl -H "Content-Type: application/json" -d '{"login":"login","password":"password"}' -X POST https://reqbin.com/echo/post/json


Bearer Token Authorization Live Request
curl -H "Accept: application/json" -H "Authorization: Bearer my_token" https://reqbin.com/echo/get/json


POST Form Live Request
curl -H "Content-Type: application/x-www-form-urlencoded" -d "param1=value1&param2=value2" -X POST https://reqbin.com/echo/post/json


Basic Server Authentication Live Request
curl --user "login:password" https://reqbin.com


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


Popular Request Methods:

GET POST PUT DELETE HEAD

ReqBin is powered by HTTP Debugger Team