On Fri, 08 Oct 2004 20:40:41 GMT, "Jeff" <jm**@mail.com> wrote:
Is there a way to echo back a case sensitive $HTTP_HOST in PHP? For
example if I type HostName.domain.com in my browser I want to return it
exactly as it appears in the location part of the browser
"HostName.domain.com" but it keeps returning a case insensitive result
"hostname.domain.com".
This behaviour makes sense - what's your need for case-sensitivity in the
case-insensitive domain name system?
RFC1035 sec 2.3.1 <http://www.ietf.org/rfc/rfc1035.txt>
"Note that while upper and lower case letters are allowed in domain
names, no significance is attached to the case. That is, two names with
the same spelling but different case are to be treated as if identical."
Monitoring HTTP requests with Ethereal made through Firefox and Internet
Explorer 6 shows that it converts the host to lowercase before it makes the
request - no mixed case Host: header gets through to the server.
--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool