innocent SBC fun

This commit is contained in:
rusefillc 2021-04-28 22:47:35 -04:00
parent 830575a306
commit 3ffeb73b16
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ public class ConnectionAndMeta {
ctx.init(new KeyManager[0], new TrustManager[]{new AcceptAnyCertificateTrustManager()}, new SecureRandom());
URL url = new URL(baseUrl + zipFileName);
System.out.println("Connecting to " + url);
httpConnection = (HttpsURLConnection) url.openConnection();
httpConnection.setSSLSocketFactory(ctx.getSocketFactory());
completeFileSize = httpConnection.getContentLength();