http - 在 firefox 中使用 in-url 基本身份验证

标签 http firefox

我在脚本中使用从命令行启动 firefox 来获取页面快照。这些页面具有基本的 http 身份验证。使用时:

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

要么出现对话框,要么身份验证根本不起作用。

是否有任何选项可以让 firefox 打开页面而不显示对话框?

最佳答案

在 firefox 中打开 about:config 页面。创建一个新的整数键(右键单击->新建->整数): network.http.phishy-userpass-length 值为 255

关于http - 在 firefox 中使用 in-url 基本身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2848287/

相关文章:

php - AJAX/PHP 为什么 HTTP 轮询如此缓慢?

visual-studio - Http到https。 IIS还是Visual Studio?

http - API 何时应抛出 4xx 状态代码(错误),何时抛出 5xx?

javascript - webpush,如果没有标签,如何打开窗口

java - 对等方的证书签名无效。错误代码: SEC_ERROR_BAD_SIGNATURE error with Selenium GeckoDriver and Firefox through Java

javascript - IntersectionObserver "standards"和 element.scrollIntoView

ruby-on-rails - 使用外部 API 请求数据填充 Rails 数据库

ajax - 允许跨域 ajax 请求中的 header

javascript - .animate 在 Firefox 中不起作用(.css 可以)

javascript - 使用附加 SDK 更改选项卡样式