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.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
public void SetRequestHeader(string key, string value)
public void SetRequestHeader(string key, string value)
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.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
public void SetRequestHeader(string key, string value, bool overwriteExisting)
public void SetRequestHeader(string key, string value, bool overwriteExisting)
public void SetRequestHeader(string key, string value, bool overwriteExisting)

Parameters

 key   string

 value  string

 overwriteExisting  bool

Examples

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Tabs.SetRequestHeader("TN=MyTest", "my_site");
Tabs.SetRequestHeader("Accept-Language", "EN");
Tabs.SetRequestHeader("TN=MyTest", "my_site"); Tabs.SetRequestHeader("Accept-Language", "EN");
Tabs.SetRequestHeader("TN=MyTest", "my_site");

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