通过URL进行HTTP基本身份验证不适用于Firefox?

时间:2010-06-14 06:31:46

标签: http firefox authentication

通常,您可以通过在URL中传递用户名和密码来登录需要HTTP基本身份验证的站点,例如:

http://myusername:myuserpassword@mydomain.com/mypath

在我的Linux机器上,我可以使用我的Konqueror浏览器以及Opera浏览器访问此网站。但是使用Firefox它不起作用?它总是显示“需要验证”对话框窗口?

为什么它可以与其他浏览器一起使用但不适用于Firefox的任何想法?

彼得

2 个答案:

答案 0 :(得分:3)

我现在知道了,问题是FF区分了

http://myusername:myuserpassword@mydomain.com/mypath

http://myusername:myuserpassword@mydomain.com/mypath/

注意URL末尾的“/”。第一个URL登录不起作用,第二个URL现在可以使用。

答案 1 :(得分:0)

您使用的是哪个版本的Firefox?

我刚尝试过,我得到了You are about to log in to the site "example.com" with the username "myusername".

如果我点击“确定”,我会完美登录...这是在Ubuntu 10.04上使用Firefox 3.6.3

如果密码错误,它会显示“需要验证”窗口,这是正常的......

相关问题