Response GetHeaderValue Method (String)C# API
Gets the value of an HTTP response header contained in this Response.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.7.98 (1.0.0.0)
Syntax

public virtual string GetHeaderValue(
	string header
)

Parameters

header
Type: System String
The HTTP response header to look for.

Return Value

The value of the header, or an empty string if the header does not exist.
Examples

The following example demonstrates getting the value of the "Last-Modified" header.
if (response.ContainsHeader("Last-Modified"))
{
    string lastModified = response.GetHeaderValue("Last-Modified");
    ...
}
See Also