Honza Pazdziora wrote:
> Hello,

hi honza, a flash from the past :)

> 
> I'm using Apache2, mod_perl2. I use Apache::Request, so that I can get
> to ->args and ->body data easily.
> 
> At the same time, I would sometimes need to get the raw body data. For
> example, an application may process both
> application/x-www-form-urlencoded and SOAP requests. However, once the
> data was $r->read it seems to be lost.
> 
> Is there any way to retrieve the raw content (and headers) of the
> HTTP request in mod_perl2, and have this raw access coexist with
> Apache::Request? Or is this a bad application design on my side and
> should I always have separate handlers for separate access methods?

see the httpd-apreq project (aka libapreq, Apache::Request, mod_apreq).

  http://httpd.apache.org/apreq/

mod_apreq allows you to read the message body multiple times over the course
of the request, which is what it sounds like you are after.

HTH

--Geoff

-- 
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