You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2000/06/01 21:44:37 UTC

RE: Wierd problem with redirect

On Wed, 31 May 2000, Jeffrey W. Baker wrote:

> On Tue, 30 May 2000, Jerrad Pierce wrote:
> 
> > I'm running into an odd redirect ptoblem myself, I'm issuing:
> > 
> > HTTP/1.1 302 Moved Temporarily\n\r
> > Date: Tue 30 May 2000 18:18:07 GMT\n\r
> > Server: Apache/1.311\n\r
> > Set-Cookie: SESSION_ID=4177a0c9ae2b278decd6038901b28a2a; path=/;
> > expires=Thu, 1-Jan-70 00:20:00 GMT;\n\r
> > Location: /\n\r
> 
> If you don't follow the HTTP specification, you can't expect the browser
> to do the right thing.  "/" is not a valid URI for a Location.  According
> to RFC 2616, the Location must be an absolute URI:

but it is valid in apache, for mod_cgi scripts and mod_perl scripts that
have PerlSendHeader On.  apache will do an internal redirect if the url is
not absolute.