IsValidHostname (open)

Check if a hostname is valid

Syntax

LOADLIB "wh::internet/urls.whlib";

BOOLEAN FUNCTION IsValidHostname(STRING hostname)

Parameters

STRING hostname

String with the hostname

Return value

BOOLEAN

TRUE 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