perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Vanasco <...@2xlp.com>
Subject Re: Modperl2 + PerlAccessHandler + Redirect
Date Thu, 09 Mar 2006 23:41:52 GMT

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 => $url);
		$r>status(Apache2::Const::REDIRECT);
   		return Apache2::Const::REDIRECT;

i *think* that method might need to use Apache2::SubRequest ();


Mime
View raw message