Checking if internet is connected using tsNet?

Bob Sneidar bobsneidar at iotecdigital.com
Sat Jul 28 00:06:21 CEST 2018


And don't forget my telnet technique. Telnet will tell you if there is a basic connection without "actually" connecting with a protocol of any sort. So it doesn't suffer from any of the built in timeouts that web protocols must have to work properly. 

Bob S


> On Jul 27, 2018, at 10:53 , Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> 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




More information about the use-livecode mailing list