[ 
https://issues.apache.org/jira/browse/COUCHDB-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14299984#comment-14299984
 ] 

ASF GitHub Bot commented on COUCHDB-2530:
-----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/couchdb-chttpd/pull/22


> CouchDB 2.0 does not support POST requests to _changes
> ------------------------------------------------------
>
>                 Key: COUCHDB-2530
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2530
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Will Holley
>
> In CouchDB 1.6, the _changes feed accepts a POST request (e.g. to submit a 
> large doc_ids parameter):
> {code}
> curl http://127.0.0.1:5984/testdb/_changes?filter=_doc_ids -XPOST 
> -H"Content-Type:application/json" -d '{"doc_ids":["1"]}'
> {"results":[
> {"seq":1,"id":"1","changes":[{"rev":"1-967a00dff5e02add41819138abb3284d"}]}
> ],
> "last_seq":1}
> {code}
> In CouchDB 2.0, this fails with a "405 Method Not Allowed" response:
> {code}
> curl http://127.0.0.1:15984/testdb/_changes?filter=_doc_ids -XPOST 
> -H"Content-Type:application/json" -d '{"doc_ids":["1"]}'
> {"error":"method_not_allowed","reason":"Only GET,HEAD allowed"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to