http -a alice:secret https://api.example.com

Category: Web App Development

http -a alice:secret https://api.example.com

Send basic auth credentials with HTTPie

Adds an HTTP basic auth header from the username and password pair. The -a flag accepts user:pass or a bare token when combined with -A bearer. Credentials travel base64 encoded, so require HTTPS in production.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.