Friday, February 8, 2002 11:35 AM
In one of my functions I am trying to send a request & get a response. In getting the response, sometimes the getInputStream gets stuck:-
URLConnection urlconn = url.openConnection();
1) Is there a way to find out if it is in a bad state before we execute it. Like if (urlconnection.badState()).
2) Is there a way to set a timeout, so it will try to get the response & timeout after few seconds?
My email firstname.lastname@example.org