perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Schindl <tomAtLi...@gmx.at>
Subject Re: Modperl2 + PerlAccessHandler + Redirect
Date Thu, 09 Mar 2006 23:39:50 GMT
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 with mod_perl2?
> 
> 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;
> }
> 
> Thanks in advance
> /younes
> 
> 
> 


Mime
View raw message