Property HttpHeaders
- Namespace
- DotNetBrowser.Navigation
- Assembly
- DotNetBrowser.dll
HttpHeaders
Gets or sets the HTTP headers that will be sent with the request.
public IEnumerable<HttpHeader> HttpHeaders { get; set; }
Property Value
- IEnumerable<HttpHeader>
The HTTP headers that will be sent with the request. Cannot be null or contain null items.
Remarks
Setting certain forbidden headers (such as 'Referer', 'Host', 'Content-Length', 'Keep-Alive', 'Proxy-headers', 'TE', etc.) will have no effect due to browser security restrictions. These headers are controlled by the browser and cannot be set for LoadUrlParameters for security reasons.
Exceptions
- ArgumentException
The
value
is null or contains null items.