perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: MP2 version of Apache->request
Date Thu, 22 Sep 2005 00:30:48 GMT


Boysenberry Payne wrote:
> I used to have:
> 
> my $r = Apache->request();
> $r->content_type("text/html");
> $r->send_http_header;
> 
> It seems the MP2 syntax is now:
> 
> $r = Apache2::RequestRec->new($c);

nope.  try

  my $r = Apache2::RequestUtil->request;

> $r->content_type("text/html");
> 
> How do I get $c?
> How do I send the http header now?

you don't - apache sends it for you.

--Geoff

Mime
View raw message