Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   GetHostNameFromURL
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
HareScript
Internet connectivity
 
File transfer (FTP)
Hypertext transfer (HTTP)
IMAP library
MIME and RFC822
POP3 email
Simple Mail Transfer Protocol (SMTP)
TCP/IP connections
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
 
 
In library 'tcpip'
AcceptOnTCPSocket
BindSocket
CloseSocket
ConnectSocket
CreateTCPSocket
CreateUDPSocket
GetHostNameFromURL
GetLastSocketError
GetLocalSocketIP
GetLocalSocketPort
GetPathFromURL
GetPortFromURL
GetRemoteSocketIP
GetRemoteSocketPort
GetSocketErrorText
GetSystemHostName
IsValidHostName
IsValidIPAddress
ListenOnTCPSocket
PrettyIPMask
ReadFromSocket
ResolveHostname
ResolveIPAddress
SetSecureConnection
SetSocketTimeout
StandardizeIPMask
UDPReceive
UDPSend
 
Top To top of page