Screen size header for a mobile device (width, height)

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.
+6
xhtml mobile
source share
2 answers

This is worse than you think.

UA-pixels: 320x240

Often a lie. In versions IEMobile <8 (Windows Mobile <6.1.4), devices with a resolution of 640x480 pixels still report themselves as 320x240. In addition, in most versions of IEMobile, the presentation can be increased to some extent, so the size of the design you have to hit is not related to the size of UA pixels.

Fluid layout options are limited to IEMobile 8. However, in IEMobile 8 on WinMobile 6.5 you get XGA resolution, zoom out, like it or not. Oh, and there is no way to sniff IEM8-on-6.5 against IEM8-on-6.1 from the headers.

I'm not sure what the purpose of your application is, but HTML / CSS output that accurately displays the screen size is almost impossible if your goals include the terrible horror that is IEMobile.

+3
source share

Here is a list of common screen resolution headers:

 X-UP-devcap-screenpixels 

or

 UA-pixels 

or

 X-JPHONE-DISPLAY 

I looked at the snippet of code that Google provides for their Adsense mobile, and these are the ones they are checking so far.

0
source share

All Articles