Remote URL Not Available

Sannyasin Brahmanathaswami brahma at hindu.org
Tue Jun 26 11:02:07 EDT 2018


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 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 respond with any number of messages.  Rather than checking all those, in there is way to do this?

put exists(sRemoteURL) into sRemoteURLAvailable
return sRemoteURLAvailable

So if it return "true" ; you can proceed with operations? If not, inform user...

Is there a header that you would get, if the URL were available?

BR



More information about the Use-livecode mailing list