Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Why is firefox submitting empty http user agent headers with "browser" listed as "default browsers"

  • 3 个回答
  • 2 人有此问题
  • 8 次查看
  • 最后回复者为 cor-el

more options

Basically the entire gist of it. Every other browser on my computer submits complete user agent headers, but firefox seems to have decided not to do this. I've tested this with addons enabled and disabled on two different pc's and still get the same result. running firefox 14.0. Here is the user agent header I'm getting...

   [browser_name_regex] => §^.*$§
   [browser_name_pattern] => *
   [browser] => Default Browser
   [version] => 0
   [majorver] => 0
   [minorver] => 0
   [platform] => unknown
   [alpha] => 
   [beta] => 
   [win16] => 
   [win32] => 
   [win64] => 
   [frames] => 
   [iframes] => 
   [tables] => 
   [cookies] => 
   [backgroundsounds] => 
   [javascript] => 
   [vbscript] => 
   [javaapplets] => 
   [activexcontrols] => 
   [isbanned] => 
   [ismobiledevice] => 
   [issyndicationreader] => 
   [crawler] => 
   [cssversion] => 0
   [aolversion] => 0

Any help is appreciated. I'm a web developer just trying to understand why stuff like this isn't standardized across browsers.

Basically the entire gist of it. Every other browser on my computer submits complete user agent headers, but firefox seems to have decided not to do this. I've tested this with addons enabled and disabled on two different pc's and still get the same result. running firefox 14.0. Here is the user agent header I'm getting... [browser_name_regex] => §^.*$§ [browser_name_pattern] => * [browser] => Default Browser [version] => 0 [majorver] => 0 [minorver] => 0 [platform] => unknown [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => [iframes] => [tables] => [cookies] => [backgroundsounds] => [javascript] => [vbscript] => [javaapplets] => [activexcontrols] => [isbanned] => [ismobiledevice] => [issyndicationreader] => [crawler] => [cssversion] => 0 [aolversion] => 0 Any help is appreciated. I'm a web developer just trying to understand why stuff like this isn't standardized across browsers.

被采纳的解决方案

Which code or which website do you visit to get those results?

Which user agent do you see on the Help > Troubleshooting Information page?

定位到答案原位置 👍 2

所有回复 (3)

more options

选择的解决方案

Which code or which website do you visit to get those results?

Which user agent do you see on the Help > Troubleshooting Information page?

more options

Ooops!

Did the testing on my own server. looks like the problem is an out of date browscap.ini file that doesn't recognize firefox 14 yet.

The userAgent string is there. I was just looking at data from a specific php function that returns values based on the string. With an out-of-date browscap.ini file, its simply going to always return the wrong values.

Thanks for the quick reply cor-el

more options

You're welcome