Thanks,
Someone on experts-change.com (I've been spreading my love around :-) suggested:
-------
You could cast the URLConnection to HttpURLConnection and only proceed with getting a stream if HTTP_OK:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html#HTTP_OK -------
What the heck, it's worth a try ...
I've inserted the following into my code prior to "while ( (s=in.readLine()) != null)":
����� ��������� � � �HttpURLConnection httpConnection = (HttpURLConnection)conn;
����� ��������� � � �int code = httpConnection.getResponseCode();
����� ��������� � � �if (code != HttpURLConnection.HTTP_OK)
����� ��������� � � �{
����� ��������� � � � � String message = httpConnection.getResponseMessage();
����� ��������� � � � � System.out.println(code + " " + message);
����� ��������� � � � � return;
����� ��������� � � �} else {
����� ��������� � � � �����System.out.println("HTTP_OK: "+code);
����� ��������� � � �}
It's nothing but informative at this point, but will let me know what the response code is the next time the 'hang' happens. �Stay tuned, will probably take several hours for it to re-occur.