Click to See Complete Forum and Search --> : How can I tell if a browser is supporting HTTP/1.1?
Moldarin
08-12-2006, 05:51 PM
Hi,
How can I do this?
if HTTP/1.1 {
header("header-stuff");
} else { // HTTP/1.0
header("other-header-stuff");
}
NogDog
08-12-2006, 07:11 PM
From the description (http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.server), it would appear $_SERVER['SERVER_PROTOCOL'] will tell you that.
bokeh
08-13-2006, 05:32 AM
Since at least 95% of websites are hosted under named based virtual hosts (i.e. they share an IP with other sites), which requires browsers to be HTTP/1.1 compliant, it is very unlikely anyone is using non-HTTP/1.1 compliant browsers any more and if they were then they wouldn't be able to view very many websites.