IsValidHostname (open)
Check if a hostname is valid
Syntax
LOADLIB "wh::internet/urls.whlib";
BOOLEAN FUNCTION IsValidHostname(STRING hostname)Parameters
STRING hostnameString with the hostname
Return value
BOOLEANTRUE if the hostname is valid
Description
Check if the entered hostname is valid, by comparing every character in the hostname to a list of valid characters