There seems to be no real standard for specifying the screen size in an HTTP header from a user agent.
For example, two headings below:
X-UP-devcap-screenpixels: 320x240
or
UA-pixels: 320x240
- two commonly used headings. The second is mainly used by Windows Mobile devices. X-UP looks like it comes from the UP browser gateway.
Another variant:
X-Screen-Width: 320 X-Screen-Height: 240
X-Screen-Width may be increased.
My question is:
What good standard to adopt on our transcoder in the future? This is not a complete web browser, but mainly for sites with limited access. But this must be the standard that Opera Mini / GWT will adopt, etc.
Neither Opera Mini nor Google Web Transcoder send this information in their HTTP requests. I assume that they expect the site to search for the phone model and therefore the width and height of the screen on the server side.
I really found this RFC 4229 called HTTP header field registration. This is partly outdated and the mission is to make corrections.
If I had to see what is mainly used in the field, I would probably end up with UA-Pixels.
Some more links
- Some devices (mostly Windows Mobile again) have a value of 320x240 in the user agent header.
xhtml mobile
David d C e Freitas
source share