httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: over-aggressive redirection in mod_dir
Date Tue, 27 Feb 2001 16:56:58 GMT
The question is NOT about how GETs are handled. We all agree that a GET
should be redirected.

The issue is for methods *OTHER* than GET.

If you redirect an OPTIONS /dav, then WebFolders says that /dav is not
DAV-enabled. It's a no-go from the start.

Basically, doing a redirect on /dav is not "being lenient in what we
accept", even though Ken said we should be. We know what was meant, so we
should go ahead and respond.

Cheers,
-g

On Tue, Feb 27, 2001 at 11:07:36AM -0500, Dale Ghent wrote:
> On Tue, 27 Feb 2001, Rodent of Unusual Size wrote:
> 
> | So let mod_dir treat them as equivalent if the envariable
> | "no-collection-redirect" is set, otherwise continue in the
> | current, technically correct, behaviour.
> 
> Your description of the problem is fair.
> 
> On a curious whim, I went a took a look at how other servers handle this
> (ie, is /foo and /foo/ the same or are we redirected?):
> 
> ----------------------------------------------
> Zeus redirects you with a 301:
> 
> [daleg@stardiver]~>telnet support.digex.net 80
> Trying 205.197.247.39...
> Connected to support.digex.net (205.197.247.39).
> Escape character is '^]'.
> GET /cst HTTP/1.0
> 
> HTTP/1.1 301 Moved Permanently
> Server: Zeus/3.1
> Date: Tue, 27 Feb 2001 16:00:51 GMT
> Connection: close
> Content-Type: text/html
> Location: http://support.digex.net/cst/
> 
> ---------------------------------------------
> IIS redirects using a 302:
> 
> [daleg@stardiver]~>telnet www.digex.com 80
> Trying 164.109.42.100...
> Connected to www.digex.com (164.109.42.100).
> Escape character is '^]'.
> GET /leverage HTTP/1.1
> Host: www.digex.com
> 
> HTTP/1.1 302 Object Moved
> Location: http://www.digex.com/leverage/
> Server: Microsoft-IIS/5.0
> Content-Type: text/html
> Content-Length: 153
> 
> ---------------------------------------------
> Netscape 3.x redirects with a 302:
> 
> [daleg@stardiver]~>telnet www.kraftfoods.com 80
> Trying 164.109.67.183...
> Connected to kraftfoods.com (164.109.67.183).
> Escape character is '^]'.
> GET /templates HTTP/1.1
> Host: www.kraftfoods.com
> 
> HTTP/1.1 302 Moved Temporarily
> Server: Netscape-Enterprise/3.6 SP2
> Date: Tue, 27 Feb 2001 16:06:16 GMT
> Location: http://www.kraftfoods.com/templates/
> Content-length: 0
> Content-type: text/html
> 
> /dale

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message