You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Srebrenko Sehic <ss...@gmail.com> on 2006/06/03 23:02:59 UTC

reading POST body in PerlAccessHandler more then once

I've defined a PerlAccessHandler which needs access to POST body. I've
implemented a sub read_post {} which uses bucket brigades API to read
the body (taken from mod_perl2 docs) and returns the data. However,
the POST body is gone after I read it.

Is there any way to read the POST body and pass the buckets unmodified
to the next filter/handler in the input chain preserving the POST
body?

This can be done with Apache2::Request->new($r), but I don't really
need all the features it offers (and the extra memory overhead). I
just want something simple.

Thanks,
Srebrenko