Take a look at mod_apreq (http://httpd.apache.org/apreq/)

Specifically,you may want to read
http://www.mail-archive.com/[email protected]/msg00716.html

  Issac

Brian McQueen wrote:
> I need to be able to stop users from uploading a massive file
> promptly/early.  By the time the headers are read its already known
> that the file will be too big, so I want to return at this point -
> without delay.  To wait until the body has been fully read can take
> hours or days for massive files.  The problem I am having is that
> Apache has been so well designed in its protocol compliance, that I
> can't seem to stop it from reading the rest of the request - the
> entire massive body of the request!  How can I make it return
> immediately?  I know the Expect header is the answer, but the lame
> clients don't use the Expect header, and I'm talking about IE and
> Firefox.  The only client I've found that really works is curl!  So I
> need to get it to make it reply promptly and early and stop reading.
> How can I do that?
> 
> Brian

Reply via email to