The Wayback Machine - https://web.archive.org/web/20061121221535/http://www.webreference.com/html/tutorial29/5.html


spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / html / tutorials / 29 / 5

index1234567

HTTP for HTML Authors, Part II

Developer News
Microsoft, Novell Trade Barbs Over Patent Deal
Red Hat Doesn't Want Mono
Vonage's Open Source Database Odyssey
Click Here

Software version info

Another two very useful HTTP headers that are used very often are Server and User-Agent. These two are used in the reponse and request, to specify the product name and version of the Web server and the user agent respectively. Neither of these fields is mandatory, and in fact they are often omitted, but they do sometimes give useful information.

As you might imagine, having experienced the chaos that is the Web today, a lot of people have thought of using the User-Agent header to dispense different documents depending on the browser in order to satisfy the numerous bugs and incompatibilities in popular browsers. Of course, before you know it, browser makers detested this attempt at setting right their wrongs and started imitating each other's User-Agent headers in order to convince Web servers that they where, in fact a different browser, so as to show that they are compatible with the latest and greatest. Unfortunately the browser makers forgot to make their browsers compatible with anything, and hence this nice and reliable way of working around browser bugs went the way of the Dodo. Although most modern browsers have stopped this despicable masquerading, looking at the User-Agent field is still a poor way of judging what a user agent is capable of.

The Server field is of less direct practical importance, and is mostly used by people like NetCraft to gather statistical information about software usage on the Web. Again, this is an optional header and many Web servers refuse to let the world know what version of which software they're running.

index1234567

Next Page...

http://www.internet.com/


JupiterWeb networks:

internet.comearthweb.comDevx.comGraphics.com

Search JupiterWeb:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterWeb

Jupitermedia Corporate Info

Copyright 2006 Jupitermedia Corporation All Rights Reserved.
Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
PPK on JavaScript: The DOM - Part 3 · Review: Image Compressor · PPK on JavaScript: The DOM - Part 2
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
The VoIP Peering Puzzle: Concepts and Challenges · The Politics of San Francisco Wi-Fi · BenQ Delivers Four New Displays

URL: http://www.webreference.com/html/tutorial29/5.html

Produced by Stephanos Piperoglou
Created: January 24, 2001
Revised: February 27, 2001

Morty Proxy This is a proxified and sanitized view of the page, visit original site.