Checking if internet is connected using tsNet?

Richard Gaskin ambassador at fourthworld.com
Fri Jul 27 13:53:42 EDT 2018


Klaus wrote:

 >> Define "valid"...
 >
 > Sorry, I meant if the machine is currently connected to the internet.
 > And if an URL actually does exist = "valid".

Assuming the protocol in question is HTTP/S, a request to a non-existent 
resource should return "404" in the error string provided in "the 
result".   If "the result" is empty the resource was retrieved as expected.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list