| GetHostNameFromURL |
| |
Derive the hostname from a URL |
| |
| Library |
 |
wh::internet/tcpip.whlib |
| |
| Syntax |
 |
PUBLIC STRING FUNCTION GetHostNameFromURL (STRING 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" |
| |
| Parameters |
 |
| url |
 |
String with the URL to use |
 |
|
| |
| Returns |
 |
String with the hostname stripped from the URL |
| |