UA string.

Andreas Pour pour at mieterra.com
Thu Feb 20 23:55:11 GMT 2003


Darin Adler wrote:

[ ... ]

> > Is there any spec on UserAgent string formatting?
> 
> I wish there was. There are some documents at mozilla.org, but that's
> all I could find.

This page seems pretty well thought-out: 
http://www.mozilla.org/build/user-agent-strings.html .  Except it would yield
something like this (well, I think they would be opposed to the leading Mozilla
there, but that's life):

  Mozilla/5.0 Konqueror/3.1 KHTML/3.1 (X11; U; `uname -s -m`) (like Gecko)

or to include the language used in the menus of the browser:

  Mozilla/5.0 Konqueror/3.1 KHTML/3.1 (X11; U; `uname -s -m`; $LANG) (like
Gecko)

which in the Safari case would become something like:

  Mozilla/5.0 AppleWebKit/60 Safari/60 KHTML/3.1 (Macintosh; U; PPC Mac OS X;
$LANG) (like Gecko)

[ ... ]

> > BTW, do you happen to know the meaning of the "U;" ? :-)
> 
> I do not. I am preparing a document explaining our user agent string
> that might some day go up on developer.apple.com, and that's one of the
> unanswered questions in my current draft.

The "U" stands for "US" and implies the high-level encryption (128 bit) which
was possible (from Netscape's perspective) only in the US; "I" stands for
low-level "International" encryption.

All that and more on the page I linked above.

Ciao,

Dre




More information about the kfm-devel mailing list