Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 39402 invoked from network); 14 Oct 2006 16:55:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Oct 2006 16:55:23 -0000 Received: (qmail 98518 invoked by uid 500); 14 Oct 2006 16:55:23 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 98368 invoked by uid 500); 14 Oct 2006 16:55:22 -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 98359 invoked by uid 99); 14 Oct 2006 16:55:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Oct 2006 09:55:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [199.203.54.245] (HELO vl654.host245.netvision.net.il) (199.203.54.245) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Oct 2006 09:55:21 -0700 Received: from [192.168.2.80] (bzq-88-155-52-125.red.bezeqint.net [88.155.52.125]) (authenticated bits=0) by mail1.mirimar.net (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k9EGsqkn021467 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 14 Oct 2006 18:54:53 +0200 Message-ID: <4531165C.9080007@beamartyr.net> Date: Sat, 14 Oct 2006 18:54:52 +0200 From: Issac Goldstand Organization: Mirimar Networks User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: Reading POST request without destroying it? References: <20061013192621.GA2891@steve.org.uk> <200610132038.46293.nick@webthing.com> <20061013194205.GA3919@steve.org.uk> In-Reply-To: <20061013194205.GA3919@steve.org.uk> X-Enigmail-Version: 0.94.0.0 OpenPGP: url=http://www.beamartyr.net/pubkey.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2031/Sat Oct 14 15:21:16 2006 on hector.mirimar.net X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N If the input is formatted using a "standard" encoding (eg, multipart/form-data or application/x-www-form-urlencoded) which it sounds like you are, you might save yourself by using mod_apreq to parse the input. In Apache2, it's implemented as an input filter, so content can still be seen by filters after it. It's homepage is http://httpd.apache.org/apreq/ Even if it's not what you need (and to me, at least, it sounds like it is), at the very least you'll probably get good sample code for developing input filters. Issac Steve Kemp wrote: > On Fri, Oct 13, 2006 at 08:38:44PM +0100, Nick Kew wrote: > >>> Is there a simple way for my module to read/process the incoming >>> POST data, whilst still allowing the data to be passed on to >>> mod_cgi, etc? >> That's what input filters are for. How best to do it depends on the >> nature and size of the requests you're processing. > > Thanks. > > I'm currently trying to find some decent sample code... The requests > I expect to be parsing are "small" in the sense that they will > typically have less than ten key=value elements. > > > Steve