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