Closed GoogleCodeExporter closed 8 years ago
Original comment by morten.f...@gmail.com
on 16 May 2009 at 2:55
Use OAuthClient.access (not OAuthClient.invoke). It returns the response
without
attempting to parse the body.
Sadly, you might not get the response body from a URLConnectionClient, because
the
underlying HttpURLConnection doesn't deliver the body if the response status
code
isn't 2xx (success). I've noticed this deficiency in some J2SE implementations
of
HttpURLConnection. I get better results with HttpClient3 or HttpClient4
(instead of
URLConnectionClient).
By the way, the OAuthProblemException returned by
OAuthResponseMessage.toOAuthProblemException may contain an excerpt of the
response
body, as part of the parameter named HttpMessage.RESPONSE. This can help you
understand what happened, although it's not a substitute for the complete body.
Original comment by jmkrist...@gmail.com
on 29 May 2009 at 5:18
Original issue reported on code.google.com by
gubler.d...@gmail.com
on 15 Apr 2009 at 10:23