URL function fails on http requests, results in "invalid host address", other internet functions work correctly

Mark Wieder mwieder at ahsoftware.net
Mon Nov 19 17:34:02 EST 2012


Gabriel Johnson <gwjapp at ...> writes:

>    put url "http://www.google.com" into htmlText; put the result
> 
> returns "invalid host address" in the message box.

Works here as well. Keep in mind, though, that the url function is a, well,
function, so the argument should be in parentheses. Also, it's probably a bad
idea to name a variable the same as a built-in keyword.

put url("http://www.google.comm") into tHtmlText; put the result

...and when in doubt, don't trust the message box - put the code into the script
of a button and click it to see the results.

-- 
 Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list