Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 52269 invoked from network); 1 Mar 2010 22:47:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 22:47:40 -0000 Received: (qmail 14306 invoked by uid 500); 1 Mar 2010 22:47:37 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 14131 invoked by uid 500); 1 Mar 2010 22:47:37 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 14122 invoked by uid 99); 1 Mar 2010 22:47:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 22:47:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.110.7.51] (HELO mail.sourcegarden.de) (217.110.7.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 22:47:29 +0000 Received: from [192.168.0.176] (unknown [192.168.0.176]) by mail.sourcegarden.de (Postfix) with ESMTP id CE0F21F76C1 for ; Mon, 1 Mar 2010 23:46:56 +0100 (CET) Message-Id: <1B0C52EC-080D-44A8-9112-171D118B68C0@sourcegarden.de> From: Mario Scheliga To: user@couchdb.apache.org In-Reply-To: <997FC84C-F22D-4A8A-9575-9A8FD91538B6@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Show Functions Date: Mon, 1 Mar 2010 23:46:56 +0100 References: <98B3FF8A-45C2-48B0-A2EC-F710CFED33B2@sourcegarden.de> <7F8CE3DE-0F08-4B73-B8CC-F26FE82A1F3B@sourcegarden.de> <997FC84C-F22D-4A8A-9575-9A8FD91538B6@gmail.com> X-Mailer: Apple Mail (2.936) X-rccsoftware-MailScanner-Information: Please contact the ISP for more information X-rccsoftware-MailScanner-ID: CE0F21F76C1.C53C9 X-rccsoftware-MailScanner: Found to be clean X-rccsoftware-MailScanner-SpamCheck: not spam, SpamAssassin (nicht zwischen gespeichert, Wertung=-4.397, benoetigt 6, ALL_TRUSTED -1.80, BAYES_00 -2.60, NORMAL_HTTP_TO_IP 0.00, WEIRD_PORT 0.00) X-rccsoftware-MailScanner-From: mario@sourcegarden.de X-Old-Spam-Status: No thx alot. that helped me out ;-) greetz mario Am 01.03.2010 um 23:07 schrieb J Chris Anderson: > > On Mar 1, 2010, at 2:04 PM, Mario Scheliga wrote: > >> Hi Chris, >> >> i thought this would be easy, but still get an error like this: >> >> curl -vX POST http://127.0.0.1:5984/todoapp/_design/todoapp/_show/display/27e2f1a54606f0883e2f8891b5bf500f >> * About to connect() to 127.0.0.1 port 5984 (#0) >> * Trying 127.0.0.1... connected >> * Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0) >>> POST /todoapp/_design/todoapp/_show/display/ >>> 27e2f1a54606f0883e2f8891b5bf500f HTTP/1.1 >>> User-Agent: curl/7.19.7 (i386-apple-darwin9.8.0) libcurl/7.19.7 >>> zlib/1.2.3 >>> Host: 127.0.0.1:5984 >>> Accept: */* >>> >> < HTTP/1.1 405 Method Not Allowed >> < Server: CouchDB/0.10.0 (Erlang OTP/R13B) >> < Date: Mon, 01 Mar 2010 22:03:23 GMT >> < Content-Type: text/plain;charset=utf-8 >> < Content-Length: 69 >> < Cache-Control: must-revalidate >> < Allow: GET,POST,HEAD >> < >> {"error":"method_not_allowed","reason":"Only GET,POST,HEAD allowed"} >> >> am i doing something wrong? perhaps i can't see.... >> GET-Method works fine .... >> > > Gotcha. I was looking at the source code for 0.11. It maybe that > 0.10 is restricted here in a way that the new version is not. > > Chris > >> greets >> mario >> >> >> >> Am 01.03.2010 um 17:47 schrieb J Chris Anderson: >> >>> >>> On Feb 28, 2010, at 6:34 AM, Mario Scheliga wrote: >>> >>>> Dear Users, >>>> >>>> is it possible to POST Show-Functions? If yes how the docId has >>>> to be submitted? >>> >>> yes. just like a GET but POST. eg the path can be >>> >>> POST /db/_design/foo/_show/bar/docid >>> >>>> >>>> -- >>>> Sourcegarden GmbH HR: B-104357 >>>> Steuernummer: 37/167/21214 USt-ID: DE814784953 >>>> Geschaeftsfuehrer: Mario Scheliga, Rene Otto >>>> Bank: Deutsche Bank, BLZ: 10070024, KTO: 0810929 >>>> Schoenhauser Allee 51, 10437 Berlin >>>> >>> >> >> >> -- >> Sourcegarden GmbH HR: B-104357 >> Steuernummer: 37/167/21214 USt-ID: DE814784953 >> Geschaeftsfuehrer: Mario Scheliga, Rene Otto >> Bank: Deutsche Bank, BLZ: 10070024, KTO: 0810929 >> Schoenhauser Allee 51, 10437 Berlin >> > -- Sourcegarden GmbH HR: B-104357 Steuernummer: 37/167/21214 USt-ID: DE814784953 Geschaeftsfuehrer: Mario Scheliga, Rene Otto Bank: Deutsche Bank, BLZ: 10070024, KTO: 0810929 Schoenhauser Allee 51, 10437 Berlin