©
This document usesPHP Chinese website manualRelease
HTTPProxy-Authorization请求标头包含用于向代理服务器认证用户代理的凭证,通常在服务器响应407Proxy Authentication Required状态和Proxy-Authenticate标题后。
|
Header type |
Request header |
|---|---|
|
Forbidden header name |
no |
Proxy-Authorization:
用户名和密码与冒号(aladdin:opensesame)组合在一起。
生成的字符串是 base64 编码的(YWxhZGRpbjpvcGVuc2VzYW1l)。
注意:Base64 编码并不意味着加密或哈希!此方法与以明文形式发送凭据同样安全(base64 是可逆编码)。倾向于将 HTTPS 与基本认证结合使用。
Proxy-Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l
|
Specification |
Title |
|---|---|
|
RFC 7235, section 4.4: Proxy-Authorization |
HTTP/1.1: Authentication |
|
RFC 7617 |
The 'Basic' HTTP Authentication Scheme |
HTTP authentication
Proxy-Authenticate
WWW-Authenticate
Authorization
401,403,407