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         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to