[Wmlbrowser] Web sites sending XHTML instead of wml, details

Stegozor stegozor at gmail.com
Thu Nov 9 09:23:03 PST 2006


Michael Kaye wrote:
> Matthew Wilson wrote:
>> Stegozor wrote:
>>> So, I'm thinking (yes, time to worry 8-) about a feature suggestion for
>>> wmlbrowser: along with current Accept Header, adding a variant of UA
>>> switcher, possibly with examples of wap compatible phones' UA strings
>>> could be useful. A wmlbrowser option in Tools pull down menu where the
>>> user could easily change this string might make sense. 
>>> http://wurfl.sourceforge.net/ maintains a database about as much
>>> wireless devices as possible (WURFL stands for wireless Universal
>>> Resource File). It's more for server side applications, but maybe it
>>> could be of some interest for spoofing purposes.
>> I'm going to say no to this one. User Agent Switcher does its job very 
>> well, and I don't see the point in trying to duplicate it. I might link 
>> to it from the front page though.

It was just a suggestion. Kind of brainstorming from someone who has at
most 3 or 4 neurons left O:-) As for the link, Mnenhy's download page
has an interesting feature: a box checked by default makes you download
simultaneously a "buddy" extension, Message-ID Finder. Have a look at
http://mnenhy.mozdev.org/installation.html#download
Works with SeaMonkey, but seemingly not with Firefox (newer than 0.9).
I'll have a closer look at this.

If, after having looked at UAS you think that it interesting to install 
it with wmlbrowser, some updates (link, basic explanation etc.) in the 
help section of wmlbrowser might be useful.

> [Michael]Perhaps also displaying a config file for use with UAS to import a set
> of standard useragents would be useful?

IMHO, it would (easy to say, I'm not the coder). Note that there's a
little problem with UAS: Due to bug 83376 in Mozilla, related to
compatibility with the Java plug-in, the extension automatically resets
the user agent when the browser is closed. The FAQ on
http://chrispederick.com/work/useragentswitcher/documentation/faq/
provides more information.

> Or maybe even allowing a "click here to add WML-based useragents to UAS"
> button within the WML Browser config -- in a similar location to the
> "click here to send WML accept header" option.

This link may be interesting:
http://chrispederick.com/forums/viewtopic.php?id=457

The developer of UAS tells that importing User Agents from an XML file
is not supported yet, but that he could possibly add this feature in a
future release. Also note that UA strings are stored in prefs.js in the
profile, and although editing this file seems possible, it shall be done
carefully (user agents are numbered, so one has to check already
existing UAs and keep in mind the useragentswitcher.user.agents.count in
about:config). At this point keeping in touch with the dev of UAS would
probably be kind & useful.

> I'm willing to go and put together a import file, if someone has details
> on (say) the top ten WML-requiring useragents out there?

I'd suggest you download the zipped wurfl file (from
http://www.nusho.it/wurfl/dl.php?t=d&f=wurfl.zip 316 KB), open it with a
text editor, and then look for "WAP1" string (without the quotation
marks) in the file. Of course, Nokia and Motorola are the most famous
brands.

PS: I found this nice FAQ that explains how to make a difference between
web and wap browsers. In case it might help in some way...
http://www.thewirelessfaq.com/
http://www.thewirelessfaq.com/how_can_i_tell_html_browsers_from_wml_browsers



More information about the Wmlbrowser mailing list