HTTPHeadersExistsAndEquals Method |
Determines if the Headers collection contains a header of the specified name, and sHeaderValue=Header's value. Similar
to a case-insensitive version of: headers[sHeaderName]==sHeaderValue, although it checks all instances of the named header.
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public bool ExistsAndEquals(
string sHeaderName,
string sHeaderValue
)
Public Function ExistsAndEquals (
sHeaderName As String,
sHeaderValue As String
) As Boolean
public:
bool ExistsAndEquals(
String^ sHeaderName,
String^ sHeaderValue
)
Parameters
- sHeaderName
- Type: SystemString
The name of the header to check. (case insensitive) - sHeaderValue
- Type: SystemString
The full header value. (case insensitive)
Return Value
Type:
BooleanTrue if the header is found and the value case-insensitively matches the parameter
See Also