Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 92027 invoked from network); 13 Oct 2006 19:26:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2006 19:26:45 -0000 Received: (qmail 10832 invoked by uid 500); 13 Oct 2006 19:26:45 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 10808 invoked by uid 500); 13 Oct 2006 19:26:45 -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 10799 invoked by uid 99); 13 Oct 2006 19:26:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 12:26:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [80.68.85.46] (HELO skx.xen-hosting.net) (80.68.85.46) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 12:26:42 -0700 Received: from steve by skx.xen-hosting.net with local (Exim 4.50) id 1GYSfl-0000mX-IL for modules-dev@httpd.apache.org; Fri, 13 Oct 2006 20:26:21 +0100 Date: Fri, 13 Oct 2006 20:26:21 +0100 From: Steve Kemp To: modules-dev@httpd.apache.org Subject: Reading POST request without destroying it? Message-ID: <20061013192621.GA2891@steve.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I've been working on a module for filtering incoming requests for some time now. I can read the incoming request correctly for most cases, but I'm having a real problem with POST handling. My module successfully uses ap_setup_client_block + ap_get_client_block to read in the payload - but once I've done this it is exhausted and no longer available to subsequent modules, such as mod_cgi. 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? (Coding against Apache 2.x, rather than 1.3, or 2.2 if that is relevant.) Steve -- http://www.steve.org.uk/