Sounds like what you are looking for is browscap.ini. This lists literally
hundreds of user-agents. A seriously ridiculous amount.
You can get it at cyscape.com. It is a free download somewhere on their
site. There may be a version at Microsoft as well. If you have an NT
server around it you probably already have an old version on that machine.
regards,
Craig
-----Original Message-----
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 6:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Need help identifying the browser a user is using
> I'd like my servlet to return content based on the
> browser the user is using. I know that at least Netscape
> and IE identify themselves using the "user-agent" field.
> However, their syntax between them and at least between
> two different versions of Netscape are very different.
> For example:
>
> Netscape 4.76:
> user-agent: Mozilla/4.76 [en] (WinNT; U)
>
> Netscape 6.0:
> user-agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001108
Netscape6/6.0
>
> IE 4.0:
> user-agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)
>
> So, you can see that Netscape 4.76 only identifies itself
> as Mozilla, Netscape 6.0 identifies itself at the end of the
> line, and IE 4.0 identifies itself in the parenthesis. Who knows
> how other versions (IE 5.0, Netscape 3.1, etc.) and other
> browsers identify themselves?
>
> Does anyone have a simple class that knows all of the
> peculiarities of these browsers can parse the user-agent field
> correctly? Any help you can give would be very appreciated.
More generally, I would be interested if someone had a user-agent database.
Remy