Re: How to read request content without eating it ?

2016-02-28 Thread Joseph Schaefer
Use apreq. Sent from my iPhone > On Feb 28, 2016, at 1:04 PM, Ben RUBSON wrote: > > Hello, > > I need to implement an access control handler based on request content. > > So here is my (very simplified) PerlAccessHandler code : > sub handler { > $r = shift; > $r->read($content,$r->headers_i

How to read request content without eating it ?

2016-02-28 Thread Ben RUBSON
Hello, I need to implement an access control handler based on request content. So here is my (very simplified) PerlAccessHandler code : sub handler { $r = shift; $r->read($content,$r->headers_in->{'Content-length'}); if($content =~ /signature=expected_signature/) { return Apache2::Con