title | slug |
---|---|
Proxy-Authenticate |
Web/HTTP/Headers/Proxy-Authenticate |
{{HTTPSidebar}}
The HTTP Proxy-Authenticate
是一个响应首部,指定了获取 {{Glossary("proxy server")}}(代理服务器)上的资源访问权限而采用的身份验证方式。代理服务器对请求进行验证,以便它进一步传递请求。
Proxy-Authenticate
首部需要与 {{HTTPStatus("407")}} Proxy Authentication Required
响应一起发送。
Header type | {{Glossary("Response header")}} |
---|---|
{{Glossary("Forbidden header name")}} | no |
Proxy-Authenticate: <type> realm=<realm>
- <type>
- : 身份验证类型。一个常见的类型是 "基本验证"。IANA 机构维护了 一系列的身份验证机制。
- realm=<realm>
- : 对于被保护区域(即安全域)的描述。如果没有指定安全域,客户端通常用一个格式化的主机名来代替。
Proxy-Authenticate: Basic
Proxy-Authenticate: Basic realm="Access to the internal site"
{{Specifications}}
- HTTP authentication
- {{HTTPHeader("Authorization")}}
- {{HTTPHeader("Proxy-Authorization")}}
- {{HTTPHeader("WWW-Authenticate")}}
- {{HTTPStatus("401")}}, {{HTTPStatus("403")}}, {{HTTPStatus("407")}}