RE: Access to Apache 2 POST data?

2011-12-09 Thread Lloyd Richardson
while($r-read($buffer, 1024)) {} Should do it. -Original Message- From: Jordan Michaels [mailto:jor...@viviotech.net] Sent: December-09-11 1:46 PM To: modperl@perl.apache.org Subject: Access to Apache 2 POST data? I'm looking for a way to pass HTTP POST data from a POST request to a

Re: Access to Apache 2 POST data?

2011-12-09 Thread Philip M. Gollucci
On 12/09/11 19:45, Jordan Michaels wrote: I'm looking for a way to pass HTTP POST data from a POST request to a subrequest, however, I can't find any methods in the mod_perl API that deal with a HTTP POST request body. Apche 1 mod_perl had $r-content, but that doesn't appear to be present

Re: Access to Apache 2 POST data?

2011-12-09 Thread Jordan Michaels
This looks like it will work nicely. For historical / search engine purposes, the read() function is part of the Apache2::RequestIO package. Here's an example implementation: use Apache2::RequestIO (); use Apache2::RequestUtil (); use Apache2::RequestRec (); use