title: How can I use HTTPS in my New Url?
body: <p>I am having problems using HTTPS in my new URL it causes it to fail whenever its https :S how can I use a https url in my java code</p>
  
  <pre><code>        ByteArrayOutputStream output = new ByteArrayOutputStream();
          URL urla = new URL(location);
          InputStream openStream = urla.openStream();
          byte[] buffer = new byte[ 1024 ];
          int sizer = 0;
  
          while( (size = openStream.read( buffer ) ) != -1 ) {
              output.write( buffer, 0, sizer );
          }
  </code></pre>
  
  <p>my script automatically gives a location but it has to be a https </p>
  
  <p>I can open the url's on my browser (I have a log.d on which tells me the url)</p>