如何获得浏览器身份验证弹出窗口? [英] How can I get browser authentication popup?

查看:49
本文介绍了如何获得浏览器身份验证弹出窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我,我怎样才能获得这个浏览器身份验证窗口?

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 Not Authorized 响应发送此请求包含 WWW-Authenticate HTTP 标头的代码.

This request should be sent using the HTTP 401 Not Authorized response code containing a WWW-Authenticate HTTP header.

用于基本身份验证的 WWW-Authenticate 标头(最常用)构造如下:WWW-Authenticate: Basicrealm="insert realm"

The WWW-Authenticate header for basic authentication (used most often) is constructed as following: WWW-Authenticate: Basicrealm="insert realm"

这篇关于如何获得浏览器身份验证弹出窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆