I can\'t understand why Java\'s HttpURLConnection does not follow an HTTP redirect from an HTTP to an HTTPS URL. I use the following code to get the page at htt
HttpURLConnection
Has something called HttpURLConnection.setFollowRedirects(false) by any chance?
HttpURLConnection.setFollowRedirects(false)
You could always call
conn.setInstanceFollowRedirects(true);
if you want to make sure you don't affect the rest of the behaviour of the app.