GetHostNameFromURL (open)
Derive the hostname from a URL
Syntax
LOADLIB "wh::internet/urls.whlib";
STRING FUNCTION GetHostNameFromURL(STRING url)Parameters
STRING urlString with the URL to use
Return value
STRINGString with the hostname stripped from the URL
Description
Try to derive the hostname from a URL, by stripping 'http://' and everything from '/' or ':' Assumes url is of the form "http://hostname/abc" or "http://hostname:port/def"