Best way to check for internet connection?
I have 2 sets of code that check for an internet connection, one does an httprequest, the other an sends an ICMP packet and and monitors the response...
Was just wondering, taking into consideration firewalls and other security settings, if we install our web application on a company's premises, what is the best method for us to determine if an internet connection is available?
Would using one of the above methods be ok, or is there a better method?
Greg