artiya4u / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

Automatically follow redirects #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://tools.ietf.org/html/rfc2616#section-10.3
http://tools.ietf.org/html/rfc2616#section-14.30

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

By default the http library should automatically follow redirects, as specified 
in the Location header for a 3xx response.  See HTTP specification above.  We 
should add a setFollowRedirects method to disable this functionality.

NOTE: we need to be careful about the HttpUnsuccessfulResponseHandler in this 
case.  One option is that we should only follow the redirect if handleResponse 
returns false.

Original issue reported on code.google.com by yan...@google.com on 12 Sep 2011 at 11:32

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 12 Sep 2011 at 11:33

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 28 Sep 2011 at 6:31

GoogleCodeExporter commented 9 years ago
Fixed in http://codereview.appspot.com/5191041/

Original comment by rmis...@google.com on 17 Oct 2011 at 11:24