Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 50139 invoked from network); 18 Sep 2010 17:52:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Sep 2010 17:52:48 -0000 Received: (qmail 98808 invoked by uid 500); 18 Sep 2010 17:52:47 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 98710 invoked by uid 500); 18 Sep 2010 17:52:46 -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 98698 invoked by uid 99); 18 Sep 2010 17:52:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 17:52:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [130.231.240.1] (HELO oulu.fi) (130.231.240.1) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 17:52:40 +0000 Received: from cc.oulu.fi (sun3.oulu.fi [130.231.240.13]) by oulu.fi (8.13.8/8.13.8) with ESMTP id o8IHqIFX019111 for ; Sat, 18 Sep 2010 20:52:18 +0300 Received: from [192.168.1.10] (dsl-176-86.oulu.fi [130.231.176.86]) by cc.oulu.fi (8.13.7/8.13.7) with ESMTP id o8IHqIOV001557 for ; Sat, 18 Sep 2010 20:52:18 +0300 (EEST) Message-ID: <4C94FC52.7060400@cc.oulu.fi> Date: Sat, 18 Sep 2010 20:52:18 +0300 From: Andre Juffer Reply-To: Andre.Juffer@oulu.fi Organization: The University of Oulu User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8 MIME-Version: 1.0 To: Cocoon Users Subject: RESTful applications Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I am building a RESTful application with cocoon 2.2. I need to be able to identify the request method. It appears that in the sitemap, {request:method}, or in flow, cocoon.request.getMethod(), the HTTP method value always is GET. I need to be able to distinguish between GET, PUT, OPTIONS, etc in order to handle the request accordingly. If the method value is always GET, then I won't be able to do so. I've tested this all with a tool called RESTClient from WizTools at http://rest-client.googlecode.com/. Could one of you (not) confirm my observation? What to do if indeed the request method is always set to GET? Thanks, -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juffer@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StruBioCat | WWW: www.strubiocat.oulu.fi NordProt | WWW: www.nordprot.org Triacle Biocomputing | WWW: www.triacle-bc.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org