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

Thanks