You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Carlos Ramirez <ca...@quantumfx.com> on 2007/05/04 08:59:40 UTC

r->content equivalent in Apache2

I'm porting an existing mod_perl 1.x module to mod_perl 2 and I can't 
seem to find the equivalent to r->content in the Apache2 API?

In the mod_perl 1.0 module, I currently have:

my %params     = $r->method eq 'POST' ? $r->content : $r->args();

but running under mod_perl 2 I get the following error:

Can't locate object method "content" via package "Apache2::RequestRec"

Any hints are appreciated. Thanks.

-Carlos


RE: r->content equivalent in Apache2

Posted by Adam Prime x443 <ap...@brunico.com>.
http://httpd.apache.org/apreq/docs/libapreq2/group__apreq__xs__request.h
tml#body

$r->body in Apache2::Request (libapreq2)

-----Original Message-----
From: Carlos Ramirez [mailto:carlos@quantumfx.com] 
Sent: Friday, May 04, 2007 3:00 AM
To: modperl@perl.apache.org
Subject: r->content equivalent in Apache2

I'm porting an existing mod_perl 1.x module to mod_perl 2 and I can't 
seem to find the equivalent to r->content in the Apache2 API?

In the mod_perl 1.0 module, I currently have:

my %params     = $r->method eq 'POST' ? $r->content : $r->args();

but running under mod_perl 2 I get the following error:

Can't locate object method "content" via package "Apache2::RequestRec"

Any hints are appreciated. Thanks.

-Carlos