code: public InputStream openStream() {
          try {
              URLConnection urlConnection = logStreamURL.openConnection();
              if (urlConnection instanceof HttpsURLConnection) {
                  HttpsURLConnection https = (HttpsURLConnection) urlConnection;
                  https.setSSLSocketFactory(Heroku.sslContext(false).getSocketFactory());
                  https.setHostnameVerifier(Heroku.hostnameVerifier(false));
              }
              urlConnection.connect();
              return urlConnection.getInputStream();
  
          } catch (IOException e) {
              throw new HerokuAPIException("IOException while opening log stream", e);
          }
      }
docs: Creates a {@link URLConnection} to logplex. SSL verification is not used because Logplex's certificate is not signed by an authority that exists
  in the standard java keystore.
  @return input stream