Sets an HTTP header for this Request, as a name/value pair.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
public virtual void SetHeader(
string header,
string value
)
public virtual void SetHeader(
string header,
string value
)
Parameters
- header
- Type: System String
The header to set.
- value
- Type: System String
The value to assign to the header.
The header will be sent to the web server when this Request is sent.
The following example demonstrates setting the
"X-Requested-With" header on the request.
request34.SetHeader("X-Requested-With", "XMLHttpRequest");
request34.SetHeader("X-Requested-With", "XMLHttpRequest");