Proxy-Authorization HTTPProxy-Authorization请求标头包含用于向代理服务器认证用户代理的凭证,通常在服务器响应407ProxyAuthenticationRequired
对于代理服务器,具有挑战性的状态代码是407(需要代理服务器认证),Proxy-Authenticate响应标头至少包含一个适用于代理服务器的挑战,并且Proxy-Authorization请求标头用于向代理服务器提供凭证
规范 规范标题RFC7235,第3.1节:401未经授权HTTP/1.1:认证 浏览器兼容性 [表格] [表格] 也可以看看 HTTP认证 WWW-Authenticate Authorization Proxy-Authorization
规范标题RFC7235,第3.2节:需要407代理身份验证HTTP/1.1:认证 浏览器兼容性 [表格] [表格] 也可以看看 HTTP认证 WWW-Authenticate Authorization Proxy-Authorization
BasicProxy-Authenticate:Basicrealm="Accesstotheinternalsite" 产品规格 [表格] 请参阅 HTTPauthentication Authorization Proxy-Authorization
另见Proxy-Authorization标题。
除了标准逐跳报头(Keep-Alive,Transfer-Encoding,TE,Connection,Trailer,Upgrade,Proxy-Authorization和Proxy-Authenticate
itwillappearasifProxy-Authenticateisbeingforwardedbecauseeachproxywillsendthesamechallengeset.NotethattheparsingconsiderationsforWWW-Authenticateapplytothisheaderfieldaswell;see[Section4.1](about:blank#section-4.1)fordetails. 4.4.Proxy-Authorization The"Proxy-Authorization"headerfieldallowstheclienttoidentifyitself
这样的标题有:Connection,Keep-Alive,Proxy-Authenticate,Proxy-Authorization,TE,Trailer,Transfer-Encoding和Upgrade
Host:#{@address}:#{@port}\r\n"ifproxy_usercredential=["#{proxy_user}:#{proxy_pass}"].pack('m0')buf<<"Proxy-Authorization
#Filelib/net/http/header.rb,line438defproxy_basic_auth(account,password)@header['proxy-authorization'
If-Unmodified-Since;[Section14.28](about:blank#section-14.28)|Max-Forwards;[Section14.31](about:blank#section-14.31)|Proxy-Authorization
---------+|Authorization|[Section 4.2of[RFC7235]](https://tools.ietf.org/html/rfc7235#section-4.2)||Proxy-Authorization