TUTORIAL: Change the User Agent your Pocket PC browser uses to make Web servers think youÃ¢â‚¬â„¢re a fully-fledged desktop browser!
Pocket PC Web browsers send out a so-called Ã¢â‚¬ËœUser-AgentÃ¢â‚¬â„¢ (U-A for short) header different from the U-A sent out by desktop Web browsers to identify themselves to Web servers.
ItÃ¢â‚¬â„¢s almost exclusively based on this information that Web servers decide what content to offer to the Web client. For example, if the U-A doesnÃ¢â‚¬â„¢t contain Ã¢â‚¬ËœMSIE 6.0Ã¢â‚¬â„¢ anywhere, some Web servers (which optimize their stuff for the, currently, most widely available desktop Windows browser, Internet Explorer 6.0, to which MSIE 6.0 is referring to) consider the client to be not a mainstream desktop Web browser and may even choose not to let the client receive anything. In these cases, Ã¢â‚¬Å“spoofingÃ¢â‚¬ the U-A information (disguising the clientÃ¢â‚¬â„¢s real identity) may be handy.
In this article, I explain how this can be done with all the current Web browsers. (Except for Minimo Ã¢â‚¬â€œ itÃ¢â‚¬â„¢s changing so often that I didnÃ¢â‚¬â„¢t want to lose much time on collecting/providing information that may get outdated really fast.)
Pocket Internet Explorer (a.k.a. Internet Explorer Mobile from WM5)
In pre-WM5 operating systems, you can use the built-in U-A changer functionality of both MultiIE and PIEPlus, the excellent IE plug-ins (see the Browser Bible for more information on them) to change this information. The well-known utility Tweaks2k2 is also able to do the trick. Also see this article on what needs to be known on all this, as far as the Registry is concerned.
In WM5, the situation is not that good as neither PIEPlus nor MultiIE (currently) support this OS and Spb Pocket Plus (still) doesnÃ¢â‚¬â„¢t support changing the U-A. However, thereÃ¢â‚¬â„¢re ways of changing it: with Tweaks2k2 or using the CAB file available here. Also, you may want to read this article on what is done and how the changes must be made in the Registry.
Opera Mobile 8.6 (unlike the previous, preview versions, where you needed to "hack" it by hand as described in this article) has built-in support for User-Agent spoofing. Go to Menu/Tools/Settings and set the Identify as drop-down list to Desktop computer if you want to make Web servers think you're using a fully-fledged desktop Web browser.
Go to (Edit/)Tools/Browser Setting/Misc; choose --- from the drop-down list in the User-Agent section and click Edit to the right.
In the following dialog, just change the contents of the User-Agent: textarea (the other three textfields donÃ¢â‚¬â„¢t need to be modified) from the default Mozilla/4.08 (PDA; NF33PPC3AR/1.0) NetFront/3.3 to the standard IE6 U-A string ("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1))") as can be seen in here . Also, you can give this setting a unique name (by filling in the Title: field) so that you can easily find it in the drop-down list on the previous page, instead of --- . Then, as can also be seen in this screenshot, youÃ¢â‚¬â„¢ll always be able to see which user-defined setting youÃ¢â‚¬â„¢re using. (Note that the screenshot shows the trial version of NF 3.3; this is why thereÃ¢â‚¬â„¢re only two items in the list. With the commercial version of NF 3.2 (the commercial version of 3.3 will be similar to it), there're several list entries in there.)
Now, after a refresh, the new, right U-A header will be sent out as can be seen in here. A quick for example AximSite test indeed shows the server considers the client to be a desktop IE browser (screenshot here).
Incidentally, this info is stored in the Registry. IÃ¢â‚¬â„¢ve elaborated on both version 3.2 and 3.3 here.
As Thunderhawk supports U-a spoofing by default, itÃ¢â‚¬â„¢s very easy to switch between predefined U-A strings (after going to Options/Advanced); from the default ( Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5) Gecko/20011018 ) you can switch to IE ( Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)), Mozilla (Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312) and Netscape (Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)) by just clicking one of the three buttons at the button. In addition, you can also freely edit the contents of the U-A field as can be seen in here.
(Here are the headers sent out.)
In cases, itÃ¢â‚¬â„¢s preferable to NOT spoof the U-A. ThatÃ¢â‚¬â„¢s the case, for example, with most Pocket PC sites, which automatically switch to a much more PDA-friendly (much faster to download, much better formatted for small screens, requiring much less bandwidth) version. With them, itÃ¢â‚¬â„¢s better to switch back to the original version.
In this article, IÃ¢â‚¬â„¢ve also shown all the headers (along with the U-A header) sent out by IEM, NetFront 3.3 and Opera Mobile b.8 b1.