Using POST for _changes feed in CouchDB

16 views
Skip to first unread message

Rajagopal V

unread,
Dec 28, 2014, 6:35:48 AM12/28/14
to mobile-c...@googlegroups.com
Hi,

When requesting for a _changes feed, there is code both in CBLite Android/iOS to switch to POST if the Sync Gateway version is > 0.93. In my case, we are using CouchDB as a source and could not find any way to force the Request Method to be POST. 

I have quite a few filter parameters that are used when doing a pull replication and will definitely cross the HTTP spec limit for Query parameters, so was wondering if there was anyway to expose the ChangeTracker.setUsePOST as an API method?

I can file a ticket if this is acceptable and there are no workarounds.

Thanks
Raja

Jens Alfke

unread,
Dec 28, 2014, 3:25:46 PM12/28/14
to mobile-c...@googlegroups.com

> On Dec 28, 2014, at 3:35 AM, Rajagopal V <raja...@gmail.com> wrote:
>
> When requesting for a _changes feed, there is code both in CBLite Android/iOS to switch to POST if the Sync Gateway version is > 0.93. In my case, we are using CouchDB as a source and could not find any way to force the Request Method to be POST.

There's no API to do it. But you could edit the source of the ChangeTracker class.

> I can file a ticket if this is acceptable and there are no workarounds.

Please do. And it would be great if you could check to see what version of CouchDB added support for POST to _changes.

—Jens

Reply all
Reply to author
Forward
0 new messages