Jump to content
xisto Community
Sign in to follow this  
soleimanian

Browser Capabilities

Recommended Posts

When a browser connects to the Web server, it automatically sends an HTTP User Agent header. This header is an ASCII string that identifies the browser and its version number. The BrowserType object compares the header to entries in the Browscap.ini file.If it finds a match, the BrowserType object assumes the properties of the browser listing that matched the User Agent header.

Share this post


Link to post
Share on other sites

When a browser connects to the Web server, it automatically sends an HTTP User Agent header. This header is an ASCII string that identifies the browser and its version number. The BrowserType object compares the header to entries in the Browscap.ini file.

If it finds a match, the BrowserType object assumes the properties of the browser listing that matched the User Agent header.

<{POST_SNAPBACK}>


For those who still do not know, you can change your HTTP User Agent header with some software(like what TuneUp Utilities does), the disadvantage though is some webpages cannot be viewed correctly because it does not match any browser type in that webpage's browser detection script(sometimes). I use Internet Explorer 6 SP2 and the logs show that I am using "almoo7 Internet Browser". :)

Share this post


Link to post
Share on other sites

Nowadays, it isn't particularly useful to alter the User Agent string. Most sites are compatible with Gecko (Firefox/Mozilla/Flock/etc) and Trident (IE/Maxthon/etc). Notable exceptions include Microsoft Update (for obvious reasons) and things like Yahoo! Launchcast Radio.Opera is very easy to change the user agent string, just add the appropriate drop down box to a toolbar. I think that Firefox (and it's derivatives) have an extension that allows you to modify User Agent strings. As for Internet Explorer, you can download a 3rd party program to do so.

Share this post


Link to post
Share on other sites

I always tought a webserver simply replies with a webpage (ASCII), not keeping mind of what a browser is capable of. Isn't it up to the developper to serve different pages depending on the browser ? Also, it's completely useless to use custom user-agent strings, it messes up website stats ;)

Share this post


Link to post
Share on other sites

It's not completely useless if you don't want stats to be made about your useage ;)Also, even if it is left to the developer to account for different browsers there still needs to be some way to identify which browser it is, which is where this string comes into play.

Share this post


Link to post
Share on other sites

With the advent of many web browsers starting to use standards, I don't think it really matters that the designers need to make multiple copies for every single web browser since the browser market is no longer just Trident and Gecko anymore. There's now Presto, WebKit, and KHTML.I'm sure that many designers won't make a version of their CSS for each one of the layout engines.xboxrulz

Share this post


Link to post
Share on other sites

Now, it should be function sniffing, as javascript should be used to enhance an experience, and there are many ways to check what is possible, and to work from there, not to identify the browser and hardcode what that browser can do.

Share this post


Link to post
Share on other sites

The source of the above excerpt in Post #1 is :
http://forums.xisto.com/no_longer_exists/

On the topic, I occasionally use the Firefox extension User Agent Switcher to change my browser's user agent. For example, I have a preset user agent for Google Bot, which is useful for some websites requiring subscription to view but show the full text to Google Bot for indexing purposes.

Share this post


Link to post
Share on other sites

I remotely recall that there are PHP, ASP as well as JavaScript methods to check the user agent (specifically a string to identify the browser) that is accessing the page. I don't think that it is wise to spoof user agents anyways, you should write to the webmaster of the page instead if it doesn't work in something like Firefox or Opera.

Share this post


Link to post
Share on other sites

The only thing I imagine this to be useful for, would be debugging your websites. I seriously hope that with browsers complying to standards more and more, the need for various hacks for different browser will finally disappear.

It's not completely useless if you don't want stats to be made about your useage ;)

Yes, but what would you gain with this? I can't imagine why a user of Firefox would like to masquerade his browser as Internet Explorer. Likewise a user aware enough to see the need to "turn" his IE into FF due to security issues, would probably just switch to FF.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.