Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1491

HttpURLConnection java.net.ProtocolException: Server redirected too many times (20) [closed]

$
0
0

I try to load a Audiofile via an URL and HttpsURLConnection.I tried the solutions on the other tickets without success.Her is what I did:

System.setProperty("http.maxRedirects", "100");java.net.CookieManager cm = new java.net.CookieManager();java.net.CookieHandler.setDefault(cm);HttpsURLConnection conn = (HttpsURLConnection) new URL(audio).openConnection();conn.setFollowRedirects(false);InputStream ins = conn.getInputStream();

Viewing all articles
Browse latest Browse all 1491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>