Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 85058 invoked from network); 26 Sep 2007 14:08:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Sep 2007 14:08:28 -0000 Received: (qmail 55038 invoked by uid 500); 26 Sep 2007 14:04:34 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 55014 invoked by uid 500); 26 Sep 2007 14:04:34 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 55001 invoked by uid 99); 26 Sep 2007 14:04:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2007 07:04:34 -0700 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 [204.127.200.82] (HELO sccrmhc12.comcast.net) (204.127.200.82) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2007 14:06:50 +0000 Received: from [192.168.1.101] (c-68-50-0-179.hsd1.va.comcast.net[68.50.0.179]) by comcast.net (sccrmhc12) with ESMTP id <2007092614041201200466boe>; Wed, 26 Sep 2007 14:04:12 +0000 Message-ID: <46FA66D9.70800@christopherschultz.net> Date: Wed, 26 Sep 2007 10:04:09 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Filter GET and POST References: <46FA5E6C.3030700@ub.uni-freiburg.de> In-Reply-To: <46FA5E6C.3030700@ub.uni-freiburg.de> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Franck, Franck Borel wrote: > i have a problem with an application that only accept GET requests. Now, > I would like to know, if there is any possibility to write a filter, who > is able to change the method from POST to GET. What do you mean by that? Do you just want to change the return value of HttpServletRequest.getMethod? You can certainly do that easily. Do you want to convert POST parameters to GET parameters? That is a bit tougher, but is possible. I'm not sure why you'd want to do this, since servlets do not really distinguish between GET and POST parameters -- the API abstracts that complexity away from your code. > I see that the FORM-Authentication could speek GET after authentication > with POST method. Is there anybody outwhere, who knows how this was done? Given that the Tomcat source code is available, you could always look in there for inspiration! - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+mbZ9CaO5/Lv0PARApC0AJ4mqO0C9Z35plJvEyE+JJ6zuybO7QCeILmO a1/C4ydqfh8Ctgz1s5I0GWk= =dNzE -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org