curl -H 'Authorization: Bearer $API_TOKEN' https://api.example.com

Category: Networking

curl -H 'Authorization: Bearer $API_TOKEN' https://api.example.com

Add a custom header to a request

Adds a custom HTTP header to the request — commonly used for authentication tokens.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.