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
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 );
}
my script automatically gives a location but it has to be a https
I can open the url's on my browser (I have a log.d on which tells me the url)