I am developing a module for apache that performs some authentication before passing requests off to the backend. Some of this authentication at times requires parsing form data. The problem is that ap_parse_form_data appears to exhaust the request body, so that by the time it passes my module and gets to the ProxyPass directive which funnels it off to the backend, the request body is gone and the backend thinks there is no form data supplied.
Is there any way to use ap_parse_form_data in such a way that it keeps the request body intact?
Thanks.
(PS. I asked this question on
stackoverflow first, then decide to ask it here as well since apache-module questions did not seem to be very well represented on stackoverflow...)
--
Matt