首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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

扫码关注腾讯云开发者

领取腾讯云代金券