GetPortFromURL (open)
Derive the port number from a url
Syntax
LOADLIB "wh::internet/urls.whlib";
INTEGER FUNCTION GetPortFromURL(STRING url)
Parameters
STRING url
String with the URL to use
Return value
INTEGER
The port number, or 0 if the protocol or port number was unrecognized
Description
Get the port number from a URL. If no port number is specified in the URL, the default port for the protocol is used