where is the case of a URL defined? how do I ensure it is mixed case and not all lower case?

Alan J Rosenthal flaps at dgp.toronto.edu
Tue Mar 21 17:50:07 UTC 2000

jsdy at cospo.osis.gov (Joseph S D Yao) writes:
>On Mon, Mar 20, 2000 at 11:09:05PM -0500, Alan J Rosenthal wrote:
>> Either name is valid.  Whatever you type into your web browser should stay
>> there.
>> Perhaps you are clicking on some other link which spells it in lower-case.
>> Or perhaps you are typing it in in lower case to your web browser and
>> expecting it to change.  This doesn't happen.
>The host name is case-independent.  Always.

Not always.  The following code:

	if (strcmp(hostname, "www.yahoo.com") == 0)
	    fprintf(stderr, "you may not connect to that host\n");

treats the hostname in a case-sensitive manner.

>And that is as far as DNS and, possibly, BIND are involved.

Yes.  But not as far as other agents are involved.  In particular, in this
case the agent in question which is case-sensitive is Mr Timothy Gill, who
wants to see "ArtsMaplewood" instead of "artsmaplewood".

>But what you see may be affected by the "ServerName" keyword in
>conf/httpd.conf in your Apache setup.  Assuming ...

This only comes into play when there is an HTTP redirect, e.g. from specifying
directory names without the trailing slash.  Otherwise the "ServerName"
variable does not feed back into the URL the web browser says that you are
looking at.


More information about the bind-users mailing list