I don't know if this is the correct channel to submit issues, if not please
let me know.
Regarding Jersey Client, I've came to find a problem when trying to
retrieve the body of a HTTP response with status 302. According to the RFC
doc http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.3 a body
on these responses is valid, but the jersey client is not returning the
input stream on the *ClientResponse*.
Debugging the jersey client I found that this method
*
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.getInputStream(HttpURLConnection)
*
is not returning the body, since it calls
*HttpURLConnection.getErrorStream() *
when the status code is greater or equal to 300. And given this
implementation
*sun.net.www.protocol.https.HttpsURLConnectionImpl *(
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/sun/net/www/protocol/http/HttpURLConnection.java#HttpURLConnection.getErrorStream%28%29
)
that return null for status codes less than 400, the error input stream for
[300,400) statuses is not being correctly captured.