Re: [mp2] reading POST body in PerlAccessHandler more then once

2006-06-07 Thread Srebrenko Sehic
Have a look at Apache2::Debug filter as it does this. http://search.cpan.org/~pgollucci/Apache2-DebugFilter-0.02/ I'm aware of this. The problem is, that DebugFilter runs in an InputFilter hook. That works fine, i.e. a POST body can be read more than once. But, it does not work in PerlAccessHand

Re: [mp2] reading POST body in PerlAccessHandler more then once

2006-06-06 Thread Philip M. Gollucci
Srebrenko Sehic wrote: I've reimplemented read_post_body as specified below and the problem *still* persist. I can only read POST body once. I've looked at libapreq2 code and they implement "apreq_brigade_copy" which (it seems) takes a copy of the bucket brigade and passes "the original" on along

Re: [mp2] reading POST body in PerlAccessHandler more then once

2006-06-05 Thread Philip M. Gollucci
Srebrenko Sehic wrote: I've reimplemented read_post_body as specified below and the problem *still* persist. I can only read POST body once. I've looked at libapreq2 code and they implement "apreq_brigade_copy" which (it seems) takes a copy of the bucket brigade and passes "the original" on along

Re: [mp2] reading POST body in PerlAccessHandler more then once

2006-06-05 Thread Srebrenko Sehic
I've reimplemented read_post_body as specified below and the problem *still* persist. I can only read POST body once. I've looked at libapreq2 code and they implement "apreq_brigade_copy" which (it seems) takes a copy of the bucket brigade and passes "the original" on along. Can something similar

Re: [mp2] reading POST body in PerlAccessHandler more then once

2006-06-05 Thread Philip M. Gollucci
Srebrenko Sehic wrote: On 6/5/06, Philip M. Gollucci <[EMAIL PROTECTED]> wrote: > 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,

Re: [mp2] reading POST body in PerlAccessHandler more then once

2006-06-05 Thread Srebrenko Sehic
On 6/5/06, Philip M. Gollucci <[EMAIL PROTECTED]> wrote: > 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

Re: [mp2] reading POST body in PerlAccessHandler more then once

2006-06-05 Thread Philip M. Gollucci
Srebrenko Sehic wrote: (I've sent this previously but it didn't get thru somehow; sorry for the re-post) 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 t

reading POST body in PerlAccessHandler more then once

2006-06-05 Thread Srebrenko Sehic
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 t

[mp2] reading POST body in PerlAccessHandler more then once

2006-06-05 Thread Srebrenko Sehic
(I've sent this previously but it didn't get thru somehow; sorry for the re-post) 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 PO