From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/http/headers/proxy-authenticate/index.html | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 files/zh-cn/web/http/headers/proxy-authenticate/index.html (limited to 'files/zh-cn/web/http/headers/proxy-authenticate') diff --git a/files/zh-cn/web/http/headers/proxy-authenticate/index.html b/files/zh-cn/web/http/headers/proxy-authenticate/index.html new file mode 100644 index 0000000000..64a46c2674 --- /dev/null +++ b/files/zh-cn/web/http/headers/proxy-authenticate/index.html @@ -0,0 +1,77 @@ +--- +title: Proxy-Authenticate +slug: Web/HTTP/Headers/Proxy-Authenticate +tags: + - 代理 + - 响应首部 + - 首部 +translation_of: 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"
+
+ +

规范

+ + + + + + + + + + + + + + + + +
SpecificationTitle
{{RFC("7235", "Proxy-Authenticate", "4.3")}}HTTP/1.1: Authentication
{{RFC("7617")}}The 'Basic' HTTP Authentication Scheme
+ +

相关内容

+ + -- cgit v1.2.3-54-g00ecf