ReactiveCouchbase / ReactiveCouchbase-core

Core library for ReactiveCouchbase
Apache License 2.0
64 stars 28 forks source link

Wrong N1QL URL #79

Open suminb opened 7 years ago

suminb commented 7 years ago

It appears the N1QLQuery sends requests to http://${host}:8091/query?q=${N1QL query} (as a GET request). However, the request should be as follows:

 POST http://${host}:8091/_p/query/query/service HTTP/1.1
 Content-Type: application/x-www-form-urlencoded; charset=UTF-8
 Accept: application/json, text/plain, */*'

 statement=${N1QL query}