Results 1 to 1 of 1
- 06-08-2009, 10:59 PM #1Member
- Join Date
- Apr 2009
- Rep Power
Problem .... sockettimeoutException not thrown
Problem Description: I am just viewing html code,headers send by different servers by connecting different websites. But i found that when i plug off LAN cable from my pc, it doesn't throw an exception indicating that connection break or like that. even if suppose my pc is not attached to Internet, and if i try to connect to different url(websites) it doesn't throw an exception like that "pc is not connected to internet". What is a soln for that? How can we know prog'lly that destination host is no longer reachable or connection is failed? i have also tried httpURLConnection's method setConnectTImeout() and setReadTimeout() but they are not working.
Plz give me appropriate guidance.
- By money123 in forum New To JavaReplies: 1Last Post: 07-30-2007, 04:41 PM