Apache2::HookRun question

2009-08-14 Thread Thomas Lindgren
Hi, I'm trying to use Apache2::HookRun according to the example provided in http://perl.apache.org/docs/2.0/api/Apache2/HookRun.html Two problems so far: 1. Apache2::RequestRec doesn't appear to provide a new() method, so the example fails. 2. A subsequent "$r->location_merge($path);" se

Re: How to reject requests before request body is sent?

2008-11-25 Thread Thomas Lindgren
On Mon, Nov 24, 2008 at 9:55 PM, Adam Prime <[EMAIL PROTECTED]> wrote: > This could be useful, but I think it's also pretty much impossible. From > what I understand, the entire request is read before any processing is done > at all, and definitely before the HeaderParserPhase is executed, which

How to reject requests before request body is sent?

2008-11-24 Thread Thomas Lindgren
Hi all, I'm using mod_perl2. I'd like to reject user requests, e.g., very large PUTs, after examining headers and authorizing the user, but before the request body is read. Quota checking could be an example of where this is useful. However, at this time, even if I return an error in the handler,