;[EMAIL PROTECTED]>
>Sujet: Re: Modperl2 + PerlAccessHandler + Redirect
>Date: Thu, 9 Mar 2006 19:59:31 -0500
>A: Tom Schindl <[EMAIL PROTECTED]>
>
>Tom's suggestion made me realize the obvious flaw in the code that
>neither of us saw.
>
> header_out
>
Tom's suggestion made me realize the obvious flaw in the code that
neither of us saw.
header_out
doesn't exist in the api. headerS_out does.
Try:
$r->headers_out( Location => 'http://www.google.fr' );
not:
$r->header_out( Location => 'http://www.google.fr' );
On
On Mar 9, 2006, at 6:13 PM, yperl wrote:
sub handler {
my $r =shift;
# tell the client what's coming
$r->content_type('text/html');
# set the location
$r->header_out( Location => 'http://www.google.fr' );
return Apache2::Const::REDIRECT;
}
$r>headers_out->set(Location =>
If that's not working I'd give err_headers_out_ a try:
http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_err_headers_out_
Tom
yperl wrote:
> Hi All!
>
> I would like to do a redirect from a PerlAccessHandler.
> With mod_perl1 to below code works.
> But how to achieve the same thing