Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 20965 invoked from network); 23 Feb 2007 00:15:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2007 00:15:45 -0000 Received: (qmail 12547 invoked by uid 500); 23 Feb 2007 00:15:53 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 12327 invoked by uid 500); 23 Feb 2007 00:15:53 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 12318 invoked by uid 99); 23 Feb 2007 00:15:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 16:15:53 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of djwortham@gmail.com designates 209.85.132.241 as permitted sender) Received: from [209.85.132.241] (HELO an-out-0708.google.com) (209.85.132.241) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 16:15:42 -0800 Received: by an-out-0708.google.com with SMTP id c8so261899ana for ; Thu, 22 Feb 2007 16:15:21 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=oicapeo1M4Fn+yXblb5renm0hRQ+6UF1/4wiu9zNE3qqLhL8yPOxVzm8jbLsm72JWqYdsgLWpHRqJnaM9Sj9JevSNC0RedG3hhZ1g4nll+JvrqqfgJ9x1Ob0vH9Kq+ICC/r2VyTAUSqdPcKL/Thuj4wSOQsG6G77gB5sApf0weY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Tzlu20wmSp3Ffzyq7ekm/tovBsmNBjWgOjg/G9I2tXM58SroOFPVfaXzXhe9HPXH8oVnxzFOSfkxvtzDfoh+455R704Nxvi0giOFBHoaTj2l8EyX9vXVDTanQiFmVoBqQWBBDP0mynm0nl44iaFdwAYlCTjbYq89askvgj2fHkw= Received: by 10.115.106.7 with SMTP id i7mr574705wam.1172189720688; Thu, 22 Feb 2007 16:15:20 -0800 (PST) Received: by 10.115.88.10 with HTTP; Thu, 22 Feb 2007 16:15:20 -0800 (PST) Message-ID: <5280fae50702221615j6e4eace7t4fbb3c8323842c08@mail.gmail.com> Date: Thu, 22 Feb 2007 17:15:20 -0700 From: "David Wortham" To: modules-dev@httpd.apache.org Subject: Sending a POST request and handling the response from a module MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_37707_18094155.1172189720653" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_37707_18094155.1172189720653 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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? Thanks, David Wortham ------=_Part_37707_18094155.1172189720653--