Re: WHICH HTML-CODE is better to use?

Steven Champeon (schampeo@hesketh.com)
Fri, 11 Apr 1997 09:39:17 -0400


Message-Id: <3.0.1.32.19970411093917.00874280@mail.imvi.com>
Date: Fri, 11 Apr 1997 09:39:17 -0400
To: "Robert Rothenburg 'Walking-Owl'" <WlkngOwl@unix.asb.com>
From: Steven Champeon <schampeo@hesketh.com>
Subject: Re: WHICH HTML-CODE is better to use?
Cc: www-html@w3.org
In-Reply-To: <199704110727.DAA25335@unix.asb.com>

At 03:27 AM 4/11/97 +0000, Robert Rothenburg 'Walking-Owl' graced us with:
=BB=A0I think NCSA will not bother with the 302 and just automatically=20
=BB=A0return the default when given a URL like http://www.site/directory

Dick Vile replied to the question with the following:
=BB=A0I run NCSA httpd 1.5 on my workstation (inside our firewall). It=
 generates
=BB=A0a 301 (not 302) for URL's w/o trailing slash.
=BB=A0
=BB=A0Here's the relevant code (from http_send.c):
=BB=A0
=BB=A0/* Path Alias (pa) array should now have the trailing slash */
=BB=A0  /*  if (pa[0] !=3D '/') { */
=BB=A0  if ((reqInfo->filename[strlen(reqInfo->filename) - 1] !=3D '/') &&=
=20
=BB=A0      (pa[0] !=3D '/')) {
=BB=A0    char url[HUGE_STRING_LEN];
=BB=A0    strcpy_dir(ifile,reqInfo->url);
=BB=A0    construct_url(url,reqInfo->hostInfo,ifile);
=BB=A0    escape_url(url);
=BB=A0    die(reqInfo,SC_REDIRECT_PERM,url);
=BB=A0  }

Steve


--
Steven Champeon                  !  Funky towel,
Web Guru/Intranet Builder        !        towel's got the funk.
schampeo@hesketh.com             !   - Joe's Apartment