For instance, if a server receives an unauthorized request from a client, the server should respond with an 401 unauthorized response that includes a WWW-Authenticate header as shown in Listing 17.
比方说,如果服务器从客户机收到未经授权的请求,服务器应该返回包含WWW - authenticate头的401 Unauthorized响应,如清单17所示。
Supports HTTP Basic authentication directly, using the Authorization request header and WWW-Authenticate response header.
直接支持HTTP基本认证,使用认证请求头和WWW -认证应答头。
应用推荐