KnownProtocols
Overview
The KnownProtocols class represents some common protocols (ftp, ssh, telnet, smtp, http, pop3, https) and their default ports which are used by the UrlParser. If you want UrlParser to make out any other protocol you can register this protocol by using RegisterProtocol method.
Location
- Reference: RemObjects.SDK.dll
- Namespace: RemObjects.SDK.Http
Class Methods
GetProtocolDefaultPort
Returns the default port number for the specified protocol.
class method GetProtocolDefaultPort(protocol: String): Int32
static Int32 GetProtocolDefaultPort(String protocol)
static func GetProtocolDefaultPort(_ protocol: String) -> Int32
Shared Function GetProtocolDefaultPort(protocol As String) As Int32
Parameters:
- protocol:
RegisterProtocol
Registers a new protocol and its default port for the UrlParser.
class method RegisterProtocol(name: String; port: Int32)
static void RegisterProtocol(String name, Int32 port)
static func RegisterProtocol(_ name: String, _ port: Int32)
Shared Sub RegisterProtocol(name As String, port As Int32)
Parameters:
- name:
- port:
- UrlParser Class