On Thu, 22 Feb 2007 17:15:20 -0700 "David Wortham" <[EMAIL PROTECTED]> wrote:
> Module Gurus, > > My module does (among many other things) HTTP POSTs to another > webserver. I was just told that I will have to be able to read (and > deal with) data in the response of a POST. I believe I will only > need to regurgitate the results of the response (without the headers) > into the module's/filter's output. > > My existing POST code was borrowed from ApacheBench (ab.c), which > does not appear to handle any of the response and is now much less > useful to me. Does anyone know of code that will allow me to both > POST request and handle the response data (and uses the APR libs)? > > A quick search on Google Codesearch revealed that Nick (Kew) wrote a > HTTPClient.(c|h) library (used with mod_validator and possibly with > others). Will this code do what I want? Um, that's a quick&dirty hack, and likely to require significantly more work to re-use an AN Other context. If I were rewriting that now, I think I'd base it around a mod_proxy subrequest instead. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/
