There's not much changes to mp2, from your usage
angle.
In mp1, you use Apache::Request
In mp2, the module is now called
Apache2::RequestUtil. But it has generally the same methods as its mp1
equivalent, including ->request().
You get the Apache2::RequestUtil the same way as in
mp1:
sub handler
{
my $r = shift;
...
}
You should also consider using Apache2::Request as
a replacement for CGI:
my $request =
Apache2::Request->new($r);
print $request->param('paramkey');
The 'preferred way' to set content type is
simply:
$r->content_type('text/html');
Hope this helps.
|
- Re: Do I need Apache2::RequestUtil::request( )? Foo Ji-Haw
- Re: Do I need Apache2::RequestUtil::request( )? Tom Schindl
- RE: Do I need Apache2::RequestUtil::request( )? Justin Luster
- Re: Do I need Apache2::RequestUtil::request( )? Tom Schindl
- RE: Do I need Apache2::RequestUtil::request... Justin Luster