Posted By:
Myongki_Kim
Posted On:
Wednesday, January 15, 2003 09:41 PM
Q1
use setInstanceFollowRedirects(false) methods. Default HttpUrlConnection's setting is true, which connection redirects(response 30x) is automatic.
Q2
URL class has URL(URL context, String spec) constructor.
Context is current url and spec is Location Header's value.
Therefore, next url is
new URL(prevURL, location_header_value).toString()
Q3
same as Q1
Sorry for my poor english