Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Reference
  4. Headers
  5. Proxy-Authorization

Proxy-Authorization header

The HTTPProxy-Authorizationrequest header contains the credentials to authenticate a client with a proxy server, typically after the server has responded with a407 Proxy Authentication Required status with theProxy-Authenticate header.

Header typeRequest header
Forbidden request headerYes

Syntax

http
Proxy-Authorization: <auth-scheme> <credentials>

Directives

<auth-scheme>

A case-insensitive token indicating theAuthentication scheme used.Some of the more common types areBasic,Digest,Negotiate andAWS4-HMAC-SHA256.IANA maintains alist of authentication schemes, but there are other schemes offered by host services.

<credentials>

Credentials use for the authentication scheme.Generally, you will need to check the relevant specifications for the format.

Note:SeeAuthorization for more details.

Examples

Basic authentication

InBasic auth, credentials are sent in the format<username>:<password> (for example,aladdin:opensesame).The resulting string is thenbase64 encoded (YWxhZGRpbjpvcGVuc2VzYW1l).

http
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.HTTPS is always recommended when using authentication, but is even more so when usingBasic authentication.

Bearer authentication (auth token)

http
Proxy-Authorization: Bearer kNTktNTA1My00YzLT1234

Specifications

Specification
HTTP Semantics
# field.proxy-authorization

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp