| GetPortFromURL |
| |
Derive the port number from a url |
| |
| Library |
 |
wh::internet/tcpip.whlib |
| |
| Syntax |
 |
PUBLIC INTEGER FUNCTION GetPortFromURL (STRING url) |
| |
| 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 |
| |
| Parameters |
 |
| url |
 |
String with the URL to use |
 |
|
| |
| Returns |
 |
The port number, or 0 if the protocol or port number was unrecognized |
| |