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 ....

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

Reply via email to