Re: Remote URL Not Available

2018-06-27 Thread J. Landman Gay via use-livecode
On 6/27/18 12:28 PM, Richard Gaskin via use-livecode wrote: > Or, if there is  just *one* thing that is true, for all "I found the > file, here it is" cases If the result is empty you should be fine. This. An empty result means the file exists and is accessible, so the script can continue a

Re: Remote URL Not Available

2018-06-27 Thread Richard Gaskin via use-livecode
Sannyasin Brahmanathaswami wrote: > "it" almost always containa data. > > e.g contains "404 Page Not Found" > > I wondering if we have to parse it for all possible errors? That's the central question of all end-user systems. :) There may be good reason to check for specific errors and handle th

Re: Remote URL Not Available

2018-06-27 Thread Mark Wieder via use-livecode
On 06/27/2018 07:34 AM, Sannyasin Brahmanathaswami via use-livecode wrote: "it" almost always containa data. e.g contains "404 Page Not Found" I wondering if we have to parse it for all possible errors? Or, if there is just *one* thing that is true, for all "I found the file, here it is" cas

Re: Remote URL Not Available

2018-06-27 Thread Sannyasin Brahmanathaswami via use-livecode
"it" almost always containa data. e.g contains "404 Page Not Found" I wondering if we have to parse it for all possible errors? Or, if there is just *one* thing that is true, for all "I found the file, here it is" cases J. Landman Gay wrote: I've used this: get url tURL

Re: Remote URL Not Available

2018-06-26 Thread J. Landman Gay via use-livecode
On 6/26/18 10:02 AM, Sannyasin Brahmanathaswami via use-livecode wrote: How do you determine that a URL is not available*before* you set a [player object, stream the text, show a slide, pick a YouTube etc]? One could obvious ping it and test for "404 page not found" , but the server may respo

Re: Remote URL Not Available

2018-06-26 Thread Sannyasin Brahmanathaswami via use-livecode
Thanks Bob.. For years if been keeping a ping.txt file on the server. It contains "true" which tell me the server is available. Interesting enough, apple does the almost the thing. That suffices for the server. I agree that there in no way " to check if a page is *going* to be available" b

Re: Remote URL Not Available

2018-06-26 Thread Bob Sneidar via use-livecode
To see if the server is listening on a given port, use telnet You should get some kind of response within a reasonable period of time. If you know the IP of the server use that instead of the name and you can avoid DNS latency. Ping will only tell you if the server is on and accessible. As

Remote URL Not Available

2018-06-26 Thread Sannyasin Brahmanathaswami via use-livecode
Our app has contains content "in the package" and content streamed from "the cloud" It’s a bit new to me dealing with TsNet, latency issues, timeout, and to give the user feedback on status… it's a challenge…So 1 question at a time: How do you determine that a URL is not available *before* you