Movatterモバイル変換


[0]ホーム

URL:


  1. 面向开发者的 Web 技术
  2. HTTP
  3. 参考
  4. HTTP 标头
  5. Proxy-Authenticate

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in EnglishAlways switch to English

Proxy-Authenticate

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.

The HTTPProxy-Authenticate 是一个响应首部,指定了获取proxy server(代理服务器)上的资源访问权限而采用的身份验证方式。代理服务器对请求进行验证,以便它进一步传递请求。

Proxy-Authenticate 首部需要与407Proxy Authentication Required 响应一起发送。

Header typeResponse header
Forbidden header nameno

语法

Proxy-Authenticate: <type> realm=<realm>

指令

<type>

身份验证类型。一个常见的类型是"基本验证"。IANA 机构维护了一系列的身份验证机制

realm=<realm>

对于被保护区域(即安全域)的描述。如果没有指定安全域,客户端通常用一个格式化的主机名来代替。

示例

Proxy-Authenticate: BasicProxy-Authenticate: Basic realm="Access to the internal site"

规范

Specification
HTTP Semantics
# field.proxy-authenticate

参见

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp