Tabs.SetRequestHeader Method

Definition

Adds the specified header (key-value pair) to all requests from Dotcom-Monitor.

Overloads

SetRequestHeader (string, string)

Adds the specified header (key-value pair) to all requests from Dotcom-Monitor.

public void SetRequestHeader(string key, string value)

Parameters

 key   string

 value  string

SetRequestHeader(string, string, bool)

Adds the specified header to all requests from Dotcom-Monitor. If the overwriteExisting is Examplesset to true, the existed header with the same key will be overwritten with the specified one.

public void SetRequestHeader(string key, string value, bool overwriteExisting)

Parameters

 key   string

 value  string

 overwriteExisting  bool

Examples

Tabs.SetRequestHeader("TN=MyTest", "my_site");

Tabs.SetRequestHeader("Accept-Language", "EN");