|
|
@ -376,8 +376,8 @@ public class HtmlFetcher { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private String getResolvedUrl(String urlAsString, int timeout, |
|
|
|
private String getResolvedUrl(String urlAsString, int timeout, |
|
|
|
int num_redirects) { |
|
|
|
int num_redirects) { |
|
|
|
String newUrl = null; |
|
|
|
String newUrl; |
|
|
|
int responseCode = -1; |
|
|
|
int responseCode; |
|
|
|
try { |
|
|
|
try { |
|
|
|
HttpURLConnection hConn = createUrlConnection(urlAsString, timeout, true); |
|
|
|
HttpURLConnection hConn = createUrlConnection(urlAsString, timeout, true); |
|
|
|
// force no follow
|
|
|
|
// force no follow
|
|
|
|