Re: Checking if internet is connected using tsNet?

2018-07-30 Thread Bob Sneidar via use-livecode
That should read: > telnet Bob S > On Jul 30, 2018, at 08:29 , Bob Sneidar wrote: > > It's simple: Shell this command: > > telnet <25> ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe a

Re: Checking if internet is connected using tsNet?

2018-07-30 Thread Bob Sneidar via use-livecode
It's simple: Shell this command: telnet <25> eg: telnet smtp.gmail.com 25 You should get a response. SMTP servers will respond with information about the SMTP server. Other connections will simply reply that you are connected. If you get nothing, there is nothing listening at that IP on that

Re: Checking if internet is connected using tsNet?

2018-07-28 Thread bob--- via use-livecode
is technique again... or > copy it to this forum, ideally? > > The dropbox entry I can find is expired. > > >> Subject: Re: Checking if internet is connected using tsNet? >> >> And don't forget my telnet technique. Telnet will tell you if there is a >> b

Re: Checking if internet is connected using tsNet?

2018-07-28 Thread Douglas Ruisaard via use-livecode
Bob... Wondering if you would post the windows-version of this technique again... or copy it to this forum, ideally? The dropbox entry I can find is expired. > Subject: Re: Checking if internet is connected using tsNet? > > And don't forget my telnet technique. Telnet will tel

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Sannyasin Brahmanathaswami via use-livecode
Well the use case differences are obvious, but to say the obvious I am connecting with a) our own server b) YouTube that’s it. AND I want to know if the URL in the app is correct (silly typo in a JSON in the app OR misfiled media on out server...etc), so I would always to get the header of t

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 10:48 AM, Sannyasin Brahmanathaswami via use-livecode wrote: if (tResult < 400) then return true else return false end if I'd be a little wary of that "< 400" result though. You may (or may not) want to follow redirects, and if you get a 418 you may wa

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Bob Sneidar via use-livecode
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 , Richa

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Klaus major-k via use-livecode
Hi Richard, > Am 27.07.2018 um 19:53 schrieb Richard Gaskin via use-livecode > : > > 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,

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Klaus major-k via use-livecode
Hi Swami, > Am 27.07.2018 um 19:48 schrieb Sannyasin Brahmanathaswami via use-livecode > : > > I just went through this in my app. Like Mark said, you do need to connect > to "something" > I put a "ping.txt" on the server. It has one word "true". Apple does the > same thing. Though they call

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Richard Gaskin via use-livecode
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

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Sannyasin Brahmanathaswami via use-livecode
I just went through this in my app. Like Mark said, you do need to connect to "something" I put a "ping.txt" on the server. It has one word "true". Apple does the same thing. Though they call it something else "serviceAvailable" or something like that and it has one word in it "available" =

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Klaus major-k via use-livecode
Hi Mark, > Am 27.07.2018 um 19:11 schrieb Mark Wieder via use-livecode > : > On 07/27/2018 09:48 AM, Klaus major-k via use-livecode wrote: >> Sorry, I meant if the machine is currently connected to the internet. >> And if an URL actually does exist = "valid". > So an active ethernet connection wo

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 09:48 AM, Klaus major-k via use-livecode wrote: Sorry, I meant if the machine is currently connected to the internet. And if an URL actually does exist = "valid". So an active ethernet connection won't do the trick. And a valid address won't work either. I don't know of any way t

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Klaus major-k via use-livecode
Hi Mark, > Am 27.07.2018 um 18:44 schrieb Mark Wieder via use-livecode > : > > On 07/27/2018 09:32 AM, Klaus major-k via use-livecode wrote: >>> Am 26.07.2018 um 16:40 schrieb Klaus major-k via use-livecode >>> : >>> >>> Hi friends, >>> >>> can we possibly "mis-"use tsNet somehow to check if

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 09:32 AM, Klaus major-k via use-livecode wrote: Am 26.07.2018 um 16:40 schrieb Klaus major-k via use-livecode : Hi friends, can we possibly "mis-"use tsNet somehow to check if the current machine has a valid internet connection? And to check if a given URL is valid? Thanks for

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Klaus major-k via use-livecode
> Am 26.07.2018 um 16:40 schrieb Klaus major-k via use-livecode > : > > Hi friends, > > can we possibly "mis-"use tsNet somehow to check if the > current machine has a valid internet connection? > And to check if a given URL is valid? > > Thanks for any hints! Cheese anyone? 8-) -- Klaus

Checking if internet is connected using tsNet?

2018-07-26 Thread Klaus major-k via use-livecode
Hi friends, can we possibly "mis-"use tsNet somehow to check if the current machine has a valid internet connection? And to check if a given URL is valid? Thanks for any hints! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___