We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With the following code, getResponseHeader("Location") returns the redirect URL, but getRedirectURL() returns null.
getResponseHeader("Location")
getRedirectURL()
HttpGet get = new HttpGet(url, false); // don't follow redirects get.run(); log.info("response code: " + get.getResponseCode()); // 302 log.info("location: " + get.getResponseHeader("Location")); // url log.info("location: " + get.getRedirectURL()); // null
The text was updated successfully, but these errors were encountered:
see checkRedirects(...) in HttpTransfer... it assigns the value returned by getRedirectURL() for some response codes...
maybe it is missing one of the codes?
checkRedirects(...) is called right after checkErrors(...) in HttpGet (line ~259)
Sorry, something went wrong.
No branches or pull requests
With the following code,
getResponseHeader("Location")
returns the redirect URL, butgetRedirectURL()
returns null.The text was updated successfully, but these errors were encountered: