I’m using CouchBase Lite on Mac and iOS.
I’m trying, for tests purposes, to send a REST request to another intense of my application over my local network, in order to do peer to peer sync.
I tied both from Objective C and from a webView with jQuery (.ajax).
Can you show the exact request you send, including the full URL and headers?
The 406 Not Acceptable response code is sent if the request has an Accept: header, and the listener isn’t able to return the MIME type specified in that header. There’s not much point to having an Accept: header in a PUT request, so try taking it out.
I again, so you right, removing all the “accept” in the header do the trick. It works using Objective C, the jQuery AJAX seems to alway send Accept event after removing it. Anyway thanks a lot.