响应首部:WWW-Authenticate

WWW-Authenticate用于HTTP访问认证.它会告知客户端适用于访问请求URI所指定资源的认证方案(Basic或是Digest)和带参数提示的质询(chanllenge).状态码401Unauthorized响应中,肯定带有首部字段WWW-Authenticate

WWW-Authenticate: Basic realm="Usagidesign Auth"

猜你喜欢

转载自xiangjie88.iteye.com/blog/2206177
www