perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Johnstone" <modp...@fadetoblack.demon.co.uk>
Subject Re: [mp1] redirect in ErrorDocument
Date Mon, 20 Mar 2006 14:00:20 GMT
> > Yet enabling "PerlSendHeader On" and doing:
> >
> >   print "Location: $newurl\n\n";
> >
> > works fine.
>
> What are the complete headers that sends?  I'm guessing it sends a 200
> status and it only works because your browser is broken and follows the
> redirect anyway.

No, it does convert the Location header into a 302 response, although it
doesn't add the body content like returning a 302 in the main request does.

>>>>>
HTTP/1.1 302 Found
Date: Mon, 20 Mar 2006 13:31:55 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.10-16
mod_perl/1.29
Set-Cookie: Apache=127.0.0.1.155421142861522485; path=/; expires=Sat,
16-Sep-06 13:31:55 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Location: http://www.manchesteronline.co.uk/
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain; charset=utf-8

0

Connection closed by foreign host.
<<<<<


Carl


Mime
View raw message