开发者

Using in-url basic authentication in firefox

开发者 https://www.devze.com 2022-12-31 13:14 出处:网络
I\'m using launching firefox from the command line in a script to get snapshots of pages. These pages have basic http authentication. When using:

I'm using launching firefox from the command line in a script to get snapshots of pages. These pages have basic http authentication. When using:

firefox http://user:pass@url.com

Either a dialog appears, or authentication doesn't work at all.

Is there a开发者_运维技巧ny option to make firefox open the page without showing the dialog?


Open about:config page in firefox. Create a new Integer key (right-click->New->Integer): network.http.phishy-userpass-length with value 255.


For me it makes all the difference of the world adding the slash at the end of the context root. Without the slash, the popup opens. With the slash it logs in as expected.

http://username:password@mysite.com/login --> does not work http://username:password@mysite.com/login/ --> works

firefox version 19.0

0

精彩评论

暂无评论...
验证码 换一张
取 消