Build HTTP Basic Auth headers (user:pass → Base64) in your browser for quick API testing.
用户名:密码 按 UTF-8 编码后做 Base64,得到凭证串。Authorization: Basic <凭证串>。💡 提示:Basic 认证为明文 Base64(非加密),务必仅在 HTTPS 下使用。curl 示例:curl -u user:pass https://api.example.com
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Credential format | Authorization: Basic base64(user:password) | RFC 7617 |
| Transport | only over TLS; cleartext channels leak credentials | RFC 7617 |
| Charset | defaults to ISO 8859-1; charset parameter opts into UTF-8 | RFC 7617 |