Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 34250 invoked from network); 3 Jul 2006 04:18:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jul 2006 04:18:06 -0000 Received: (qmail 37236 invoked by uid 500); 3 Jul 2006 04:18:02 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 37171 invoked by uid 500); 3 Jul 2006 04:18:01 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 37160 invoked by uid 99); 3 Jul 2006 04:18:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jul 2006 21:18:01 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [195.225.171.136] (HELO session.it) (195.225.171.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jul 2006 21:17:58 -0700 Received: (qmail 2196 invoked from network); 3 Jul 2006 06:17:00 +0200 Received: from 85-18-136-98.fastres.net (HELO ?192.168.0.9?) (s.gianni@thebug.it@85.18.136.98) by 195.225.171.136 with AES256-SHA encrypted SMTP; 3 Jul 2006 06:17:00 +0200 Message-ID: <44A89A59.7070801@thebug.it> Date: Mon, 03 Jul 2006 06:17:29 +0200 From: Simone Gianni User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050807) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: reading GET and POST parameters References: <001c01c69dde$81d924f0$6400a8c0@magus> In-Reply-To: <001c01c69dde$81d924f0$6400a8c0@magus> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Matjaz, currently the coexistence of GET style parameters (usr?param=value) in a POST request with POSTed parameters is simply wrong. In a POST request parameters should be in the body of the request, and not in it's URL as in a GET. That's why the HTTP Servlet API only offers a getParameter method returning the value of a parameter, and I'm not even sure that the fact that it returns also URL parameters during a POST request is documented and/or widely supported. Cocoon is a servlet, so it simply delegates HTTP request parsing to the servlet container thru the servlet API, which offers no method to distinguish between a GET style parameter or a POST style parameter, since there should be no need to distinguish between them. So the answer is no, and it's not a cocoon fault, it's not a servlet api fault, but this should never be written :
but should be converted to this : Simone Matjaz Bohoric wrote: > In cocoon flowscript there is only one method for reading request > parameteres - cocoon.request.get > which doesnt distinct between GET and POST parameters. > > I would like to get list of POST and GET parameters respectively, NOT > union of both. > > Is it possible (similart to $_GET and $_POST in PHP) > > thanks, > MB -- Simone Gianni --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org