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: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public string GetTokenValue(
string sHeaderName,
string sTokenName
)
Public Function GetTokenValue (
sHeaderName As String,
sTokenName As String
) As String
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:
StringValue of the token if present; otherwise, null
See Also