I'm playing with the oauth2 support in v2-beta with an http client that doesn't support gzip decoding. (My client is http spec compliant but can't deal with the non-compliance of the api on this issue). Am I out of luck?
1 Answer
Starting in V2, the API will honor deflate Accept-Encodings (it still defaults to GZIP in the absence of an Accept-Encoding). So, if deflate is an option then you've got a work around.
I'm curious as to what client you're using that doesn't support GZIP? That's kind of egregious in 2011.
-
I'm using the MarkLogic built-in client, which unfortunately does not support gzip or deflate. I agree it's a bit egregious.Eric Bloch– Eric Bloch2011-12-07 17:05:26 +00:00Commented Dec 7, 2011 at 17:05
-
@Eric: You could use a proxy that supports GZIP - for example, you could have another application running locally that makes the requests and then have your app just send the request to the local proxy.Nathan Osman– Nathan Osman2011-12-07 18:14:49 +00:00Commented Dec 7, 2011 at 18:14
-
@Eric - hmm, reading over that documentation it looks like under some conditions you'll get a binary object back as the second node. If that's the case, is there any way to get a hold of zlib or similar in your app?Kevin Montrose– Kevin Montrose2011-12-07 18:18:53 +00:00Commented Dec 7, 2011 at 18:18
-
1Also, I'm glad to here that just plain-old DEFLATE is now supported. Now I can use the API with an unmodified version of Qt, which only provides DEFLATE decompression by default.Nathan Osman– Nathan Osman2011-12-07 20:52:17 +00:00Commented Dec 7, 2011 at 20:52
-
@George - when I try to make a request via an apache proxy, I get the following error:
{"error_id":400,"error_name":"bad_parameter","error_message":"site is required"}Eric Bloch– Eric Bloch2011-12-16 23:10:18 +00:00Commented Dec 16, 2011 at 23:10 -
@EricBloch: Are you passing
siteas a query string parameter?Nathan Osman– Nathan Osman2011-12-16 23:13:39 +00:00Commented Dec 16, 2011 at 23:13 -
@NathanOsman I am having the same problem, and I am passing
site=stackoverflowin the query string.Zev Eisenberg– Zev Eisenberg2014-07-04 05:41:06 +00:00Commented Jul 4, 2014 at 5:41