Sets whether HTTP redirects should occur automatically on the specified http url connection object.
Syntax
setFollowRedirects( httpurlconnection , boolean )
httpurlconnection.setFollowRedirects( boolean )
Parameters
httpurlconnection
|
the http url connection object to use.
|
boolean
|
true to enable http redirects.
false to disable http redirects.
|
Returns
Example
ucon.setFollowRedirects( true )
|