The SetHeader method assigns a custom HTTP request header that
will be included with subsequent requests made using the current client
session. If the specified header already exists in the custom header list,
its value will be replaced. If the header value is an empty string,
the header will be removed.
This method is intended for advanced applications that require lower-level
access to provider-specific functionality. Most applications should not
need to use custom request headers. Some headers are managed internally by
the control and cannot be overridden using this method. This includes headers
required for authentication, content formatting, message length, host
identification, and other protocol-specific functionality required by the
current provider.
Examples of headers that are managed internally by the control include:
Authorization
Content-Length
Content-Type
Host
User-Agent
Custom headers remain associated with the current client session until
they are removed using the ClearHeaders method or the control is
reset or uninitialized.