Hi everybody,

I have a general problem with coax/hoax to define URI's with query 
parameters like "http://myurl.com/test?query=param";.
I found coax and hoax in the Couchbase-Light example PhoneGap APP 
"TodoLite-PhoneGap".

I definitely need query params, because I want to DELETE couchbase 
documents or even updating them,
Therefore the revision is required as query parameter (to name just one 
scenario).

I tested this:

var server = hoax("http://myserver.com/";);
var options = {
   uri: 'test',
   qs: {
      mykey: 'myvalue'
   }
};

var path = server(options);

// should result in --> http://myserver.com/test/123?mykey=myvalue
path.get("123", function(err, json){
    console.log("put json", json);
});

The request is sent, but the query parameter is just ignored.
Even the official hoax example does not fire query 
parameters: https://github.com/jchris/hoax

Whats wrong? Any suggestions?

Would be fantastic if Chris Anderson reads this post ;-)

Cheers and thanks,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/d1c9366c-d78b-4fd2-a092-dc2a2e608a04%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to