URLConnection & Http/Https

Joined
Jun 30, 2010
Messages
1
Reaction score
0
Hi,

I have a some scripts which launch a HTTPS URL with difference process, but now the certifique has expired. I change the HTTPS URL to HTTP URL, but one of the proccess which takes more than two hours to finish, return no answer and scripts doesn´t finish, but the otrer process who takes few minutes finish without problems. ¿ a http connection no use to send a answer or depend of time? ¿Is there any solution to avoid this problem?

Thx for your time and i apologize for my english level. If you want to know more ask me plz.

Code:
My code

URL url = new URL(cnfUrl);
URLConnection connection = url.openConnection();
connection.setUseCaches(false);
connection.setDoOutput(true);
			
//connection.setRequestProperty("content-type","application/x-www-form-urlencoded");
			
InputStream is = connection.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
br = new BufferedReader(isr);
String line = null;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top