files/en-us/web/http/reference/headers/proxy-authorization/index.md
The HTTP Proxy-Authorization {{Glossary("request header")}} contains the credentials to authenticate a client with a proxy server, typically after the server has responded with a {{HTTPStatus("407", "407 Proxy Authentication Required")}} status with the {{HTTPHeader("Proxy-Authenticate")}} header.
Proxy-Authorization: <auth-scheme> <credentials>
<auth-scheme>
Basic, Digest, Negotiate and AWS4-HMAC-SHA256.
IANA maintains a list of authentication schemes, but there are other schemes offered by host services.<credentials>
[!NOTE] See {{HTTPHeader("Authorization")}} for more details.
In Basic auth, credentials are sent in the format <username>:<password> (for example, aladdin:opensesame).
The resulting string is then base64 encoded (YWxhZGRpbjpvcGVuc2VzYW1l).
Proxy-Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l
[!WARNING] Base64 encoding is reversible, and therefore offers no cryptographic security. This method can be considered equivalent to sending the credentials in clear text. {{Glossary("HTTPS")}} is always recommended when using authentication, but is even more so when using
Basicauthentication.
Proxy-Authorization: Bearer kNTktNTA1My00YzLT1234
{{Specifications}}