非常教程

HTTP参考手册

标题 | Headers

Proxy-Authenticate

HTTP Proxy-Authenticate响应标头定义了应该用来访问代理服务器后面的资源的认证方法。它验证对代理服务器的请求,允许它进一步传输请求。

所述Proxy-Authenticate报头与一个一起发送407 Proxy Authentication Required

Header type

Response header

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"

产品规格

Specification

Title

RFC 7235, section 4.3: Proxy-Authenticate

HTTP/1.1: Authentication

RFC 7617

The 'Basic' HTTP Authentication Scheme

请参阅

  • HTTP authentication
  • Authorization
  • Proxy-Authorization
  • WWW-Authenticate
  • 401, 403, 407
HTTP

超文本传输协议( HTTP,HyperText Transfer Protocol ) 是互联网上应用最为广泛的一种网络协议。所有的 WWW 文件都必须遵守这个标准。