- 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.
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;