Using the current release of the Jersey client, it seems that if a redirect
(302) switches to the 'https' scheme it's not followed even if the client
is configured to do so. Is this a bug or did I overlook something?
Client client = new Client();
client.setFollowRedirects(true);
client.addFilter(new LoggingFilter(System.out));
URI uri = URI.create("http://developers.google.com/kml/documentation/images/etna.jpg");
WebResource resource = client.resource(uri);
ClientResponse rsp = resource.get(ClientResponse.class);
if (rsp.hasEntity()) {
System.out.println(rsp.getLength());
}