Click or drag to resize
HTTPHeadersGetTokenValue Method
Returns the Value from a token in the header. Correctly handles double-quoted strings. Requires semicolon for delimiting tokens Limitation: FAILS if semicolon is in token's value, even if quoted. FAILS in the case of crazy headers, e.g. Header: Blah="SoughtToken=Blah" SoughtToken=MissedMe We really need a "proper" header parser

Namespace: Fiddler
Assembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax
public string GetTokenValue(
	string sHeaderName,
	string sTokenName
)

Parameters

sHeaderName
Type: SystemString
Name of the header
sTokenName
Type: SystemString
Name of the token

Return Value

Type: String
Value of the token if present; otherwise, null
See Also