curl -u alice:secret https://api.example.com

Category: Web App Development

curl -u alice:secret https://api.example.com

Send a request with HTTP basic auth

Adds an Authorization header built from the username and password pair, using HTTP basic authentication. The credentials are base64 encoded, not encrypted, so only use this over HTTPS. For token auth, send an Authorization Bearer header instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.