Remote URL Not Available
J. Landman Gay
jacque at hyperactivesw.com
Tue Jun 26 15:55:39 EDT 2018
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 respond with any number of messages. Rather than checking all those, in there is way to do this?
I've used this:
get url tURL
put the result into tNetworkErr
put it into tData
If the result isn't empty then there has been an error. Otherwise, you
can do something with the data in the "it" variable.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list