Gets the value of the nth instance of an HTTP response header
contained in this Response.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.7.98 (1.0.0.0)
Syntax
Parameters
- header
- Type: System String
The HTTP response header to look for.
- index
- Type: System Int32
The zero-based index of the response header to look for.
Return Value
The value of the header, or an empty string if the header does not exist.Examples
if (response.ContainsHeader("Set-Cookie")) { // Get the value of the 2nd Set-Cookie header in the response string lastModified = response.GetHeaderValue("Set-Cookie", 1); ... }
See Also