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:[EMAIL PROTECTED] 
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

Reply via email to