我怎样才能得到验证的浏览器弹出? [英] How can I get browser authentication popup?
问题描述
谁能告诉我,我怎么能得到这个浏览器验证窗口?
Can anyone tell me, how can I get this browser authentication window ?
推荐答案
这是弹出的 HTTP-验证。为了得到它,你需要启用它在你的Web服务器。维基百科指出的:
This popup is part of the HTTP-Authentication. In order to get it, you need to enable it in your web server. As Wikipedia puts it:
当服务器需要用户代理本身对认证
服务器,它可以发送验证请求。
When the server wants the user agent to authenticate itself towards the server, it can send a request for authentication.
这个请求应该使用 HTTP 401没有获得许可响应发送
包含WWW身份验证的HTTP标头code。
This request should be sent using the HTTP 401 Not Authorized response code containing a WWW-Authenticate HTTP header.
WWW身份验证头中基本身份验证(最常用)
构造如下: WWW验证:Basicrealm =插入境界
The WWW-Authenticate header for basic authentication (used most often)
is constructed as following: WWW-Authenticate: Basicrealm="insert realm"
这篇关于我怎样才能得到验证的浏览器弹出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!