UtilitiesCrackHostAndPort Method |
This function cracks the Hostname/Port combo, removing IPV6 brackets if needed
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static void CrackHostAndPort(
string sHostPort,
out string sHostname,
ref int iPort
)
Public Shared Sub CrackHostAndPort (
sHostPort As String,
<OutAttribute> ByRef sHostname As String,
ByRef iPort As Integer
)
public:
static void CrackHostAndPort(
String^ sHostPort,
[OutAttribute] String^% sHostname,
int% iPort
)
Parameters
- sHostPort
- Type: SystemString
Hostname/port combo, like www.foo.com or www.example.com:8888 or [::1]:80 - sHostname
- Type: SystemString
The hostname, minus any IPv6 literal brackets, if present - iPort
- Type: SystemInt32
Port #, 80 if not specified, -1 if corrupt
See Also