Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 91382 invoked from network); 26 Sep 2007 14:26:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Sep 2007 14:26:53 -0000 Received: (qmail 20735 invoked by uid 500); 26 Sep 2007 14:26:26 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 20717 invoked by uid 500); 26 Sep 2007 14:26:26 -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 20705 invoked by uid 99); 26 Sep 2007 14:26:26 -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:26:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [132.230.2.213] (HELO mailgateway3.uni-freiburg.de) (132.230.2.213) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2007 14:28:42 +0000 Delivery-date: Wed, 26 Sep 2007 16:26:24 +0200 Received: from mail.ub.uni-freiburg.de ([132.230.2.94] helo=uni-freiburg.de) port 48425 by mailgateway3.uni-freiburg.de with esmtp (Exim 4.60 #1 built 13-Jul-2006 14:56:20 running on Gentoo) id 1IaXq0-0001rg-Ar for users@tomcat.apache.org; Wed, 26 Sep 2007 16:26:04 +0200 Received: from [132.230.25.122] (account franck.borel@mail.ub.uni-freiburg.de [132.230.25.122] verified) by uni-freiburg.de (CommuniGate Pro SMTP 5.0.13) with ESMTPSA id 91014177 for users@tomcat.apache.org; Wed, 26 Sep 2007 16:26:04 +0200 Message-ID: <46FA6BD9.3090005@ub.uni-freiburg.de> Date: Wed, 26 Sep 2007 16:25:29 +0200 From: Franck Borel User-Agent: Thunderbird 2.0.0.6 (X11/20070824) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Filter GET and POST References: <46FA5E6C.3030700@ub.uni-freiburg.de> <46FA66D9.70800@christopherschultz.net> In-Reply-To: <46FA66D9.70800@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Christopher, thank you very much for your answer. >> 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. No. > Do you want to convert POST parameters to GET parameters? That is a bit > tougher, but is possible. Yes, I think this is the only possibility. I found no example how this could be done. Any idea? > 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. If I change the request from POST to GET the Servlet works. I have no possibility to change the Servlet behind. >> 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! Thanks! -- Franck --------------------------------------------------------------------- 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