On Wed, Aug 18, 2004 at 04:59:09PM +0200, Honza Pazdziora wrote:
> 
> I have httpd-apreq / Apache::Request in my setup, in fact what I do
> is basically
> 
>       use Apache::Request ();
>       my $request = Apache::Request->new($r);
>       if ($r->method eq 'POST') {
>               # process $request->param and $request->body
>       } elsif ($r->method eq 'GET') {
>               # process $request->args
>       }
> 
> and it works great. However, I'm probably missing something but how do
> you do equivalent of $r->read($buffer, 64_000) multiple times? I can
> create multiple Apache::Request objects based on one $r just fine but
> that does not seem to give me the raw message body, does it?

So far, the only solution I came with is to write input filter which
will gather the raw content of the HTTP request in temporary variable,
and if asked for the raw data, force read until is_eos and then
return whatever was collected in the storage. Does is sound like
a reasonable thing to do?

-- 
------------------------------------------------------------------------
 Honza Pazdziora | [EMAIL PROTECTED] | http://www.fi.muni.cz/~adelton/
 .project: Perl, mod_perl, DBI, Oracle, large Web systems, XML/XSL, ...
                Only self-confident people can be simple.

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to