Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   GetPortFromURL
  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
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
 
 
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