2

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 1

1

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.

7
  • 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
    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. 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? Dec 7, 2011 at 18:18
  • 1
    Also, 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. 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
    Dec 16, 2011 at 23:10
  • @EricBloch: Are you passing site as a query string parameter? Dec 16, 2011 at 23:13
  • @NathanOsman I am having the same problem, and I am passing site=stackoverflow in the query string. Jul 4, 2014 at 5:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .