Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 46715 invoked from network); 26 Mar 2009 00:54:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Mar 2009 00:54:55 -0000 Received: (qmail 26971 invoked by uid 500); 25 Mar 2009 20:11:13 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 26947 invoked by uid 500); 25 Mar 2009 20:11:13 -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 26937 invoked by uid 99); 25 Mar 2009 20:11:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 20:11:13 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [62.12.11.207] (HELO static.kpn.net) (62.12.11.207) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 20:11:03 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by static.kpn.net (Postfix) with ESMTP id AA0C32D4633 for ; Wed, 25 Mar 2009 20:10:40 +0000 (GMT) Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <290073.91554.qm@web31803.mail.mud.yahoo.com> References: <892935.30955.qm@web31807.mail.mud.yahoo.com> <290073.91554.qm@web31803.mail.mud.yahoo.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Nick Kew Subject: Re: Input filter to process POST variables (e.g. mod_form) Date: Wed, 25 Mar 2009 20:10:39 +0000 To: modules-dev@httpd.apache.org X-Mailer: Apple Mail (2.753.1) X-Virus-Checked: Checked by ClamAV on apache.org On 25 Mar 2009, at 14:34, Erik Westland wrote > >> From: Erik Westland >> To: modules-dev@httpd.apache.org >> Sent: Saturday, March 21, 2009 11:22:52 PM >> Subject: Input filter to process POST variables (e.g. mod_form) I'm sure I recollect replying to that question a few days ago: in fact my mailer shows your question as replied to. Guess maybe it got lost in the ether. >> It seems that "mod_form" (see: http://apache.webthing.com/ >> mod_form/) does the >> parameter processing, but comes with the following ominous caveat: >> "mod_form works with GET but is largely untested under POST, and >> appears to have >> problems with POST and HTTP Keepalive. That will be fixed, but >> it's not >> currently a priority." There was some test case where it hung. I've also had reports of it working successfully with POST. >> Q: Does anyone know if this is safe to use? Their support page >> lists mod_form >> as: "unlikely to represent value to you." That means I don't want anyone making the voluntary donation my pages invite on the false premise that it's a tried-and tested production-grade module. >> Q: Is there another alternative to writing my own? If not, any >> idea what the >> keepalive issue was? mod_request (didn't exist when I wrote mod_form). Or apreq (did exist, but a more heavyweight solution). >> Q: Apache processes variables in the URL (parses into r->args) >> during POST >> requests, but the mod_form implementation doesn't look for r->args >> when handling >> POST requests. Is this disallowed/discouraged in the spec or an >> oversight in the >> implementation? Both. It's an edge case, and a mod_form incompleteness. But it won't bite you unless your application uses a POST form with a query_string in the action. Or perhaps does similar for non-browser data. -- Nick Kew