views:

9

answers:

0

Hi,

I'm trying to build an Apache filter that will allow the server to only take as many bytes of an incoming POST file upload as it needs. I want it to acknowledge the client with a 200 OK and close the connection after a certain defined delimiter has been detected in the request stream.

I'm just starting with Apache filters, and module development over all, so maybe I've completely misunderstood the scope of what is possible to do with filters. But to me, it should really be a simple hack to just call some send_200_ok_to_client() procedure followed by some socket_close(). Maybe even in one API procedure. Does anyone have any idea what this/these call(s) could be called? And if it's even possible?

Thanks,

Andreas