Click or drag to resize
UtilitiesCrackHostAndPort Method
This function cracks the Hostname/Port combo, removing IPV6 brackets if needed

Namespace: Fiddler
Assembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax
public static void CrackHostAndPort(
	string sHostPort,
	out string sHostname,
	ref 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