Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing the HTTP header user-agent




On Jun 22, 2005, at 3:48 AM, Joachim Haagen Bøe wrote:

Does anyone know if there are any good sources for information (preferably with implementation) of ways to parse the user-agent properly ?

There is no good way to browser sniff.

There will always be problems.

For example, Firefox on Mac pretends to be IE... that is to say, it mimics IE's attempts to be seen as "Mozilla" (as just about every browser does).

And then you get Safari which claims to be "like Gecko"

And Opera, which will pretend to be IE which pretends to be "Mozilla"

Really finding IE is nearly impossible, given all the variations of browsers which try to look like it, lest they be blocked out of a site by someone whose brain-dead browser sniffer thinks that they know best what browsers should be "supported"

Browser sniffing is the dark side. Use with extreme caution, and only when forced.

Perhaps if you could say a bit more about what you were trying to do?

    TjL
    President and Founder, Anti-Browser Sniffing Alliance
    Our motto: "Sniff glue, not browsers!"


_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden
References: 
 >Parsing the HTTP header user-agent (From: Joachim Haagen Bøe <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.