Closed
Bug 373476
Opened 17 years ago
Closed 17 years ago
[Windows] User agent string does not include CPU architecture (PHP $_SERVER['HTTP_UA_CPU'])
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: gregorherdmann, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30) Build Identifier: Currently with all Versions of Firefox the $_SERVER['HTTP_UA_CPU'] always returns an empty result. Even IE7 is now capable of sending back the appropriate CPU (e.g. x86 or AMD64) Reproducible: Always Steps to Reproduce: 1.write a php script that looks for $_SERVER['HTTP_UA_CPU'] 2. hit it with Firefox 3. the variable returned will always be empty Expected Results: CPU type should be returned
there's no cpu in your user agent. provide examples and we can talk.
Component: General → Networking: HTTP
Product: Firefox → Core
QA Contact: general → networking.http
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 2•17 years ago
|
||
There is no CPU in my user agent as $_SERVER['HTTP_UA_CPU'] does not read the standard user agent string but only returns the CPU type of the user. (To read the user agent string with PHP you use $_SERVER['HTTP_USER_AGENT']). Internet Explorer 7 will return x86 on an x86 machine or AMD64 on an AMD64 machine running the 64bit version of IE for example. If you want an example go to with an IE7 http://handball.bfc-preussen.de/admin/userstatistik/usertest.php and it should show you your CPU type. If you are running in emulated 64bit I will output x64/x86 and I am replacing AMD64 with x64 in my script. If you do the same with Firefox it won't return anything. I will then set it to "Unbekannt" (unknown).
Reporter | ||
Updated•17 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 3•17 years ago
|
||
why is this a mozilla bug rather than a server bug? we send the CPU to the server, it can do whatever it wants with it. the user-agent header is very relevant, where else could the server get the cpu from?
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 4•17 years ago
|
||
Because it looks like you do not send it to the server. I do not get a result on the $_SERVER['HTTP_UA_CPU'] for any Mozilla user visiting my site. I do get a valid $_SERVER['HTTP_USER_AGENT'] result from them: for example: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 but the $_SERVER['HTTP_UA_CPU'] will be empty. IE7 users return a result.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 5•17 years ago
|
||
we do send it on non-windows platforms. fixing OS field.
OS: All → Windows XP
Hardware: All → PC
Reporter | ||
Comment 6•17 years ago
|
||
I just had a friend check on his Mac the $_SERVER['HTTP_USER_AGENT'] returns: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 but the $_SERVER['HTTP_UA_CPU'] is also empty so this is not only happening on Windows.
Comment 7•17 years ago
|
||
the UA header says "Intel Mac". so that part is a server bug.
Comment 8•17 years ago
|
||
OK, it turns out, MSIE actually sends an HTTP header UA-CPU in some versions. I'm not going to bloat mozilla's HTTP header to transmit useless information. WONTFIX.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → WONTFIX
Updated•17 years ago
|
Summary: PHP: $_SERVER['HTTP_UA_CPU'] does not return result → [Windows] User agent string does not include CPU architecture (PHP $_SERVER['HTTP_UA_CPU'])
You need to log in
before you can comment on or make changes to this bug.
Description
•