HTTP Header
About
HTTP Header Condition is a condition to manipulate HTTP request or response headers incoming to a Backend Service.
How to Add?
To add a HTTP Header Condition from the TR7 ASP interface, "Traffic Manager > Traffic Manipulation > Conditions > Add" steps are followed. At the current page HTTP Header is selected as a Criteria and the following form is shown.
Interface
HTTP Header Form
- Condition Name (Optional)
Name for the condition is entered. If no name is given to the condition Condition Description will be visible in the TR7 ASP interface to represent the added condition.
- Criteria
HTTP Header is selected.
- Match Type
Condition is triggered when the incoming HTTP request header value exactly matches the Query value.
Condition is triggered when the incoming HTTP request header value starts with the Query value.
Condition is triggered when the incoming HTTP request header value ends with the Query value.
Condition is triggered when the incoming HTTP request header value contains the Query value.
Condition is triggered when the incoming HTTP request header value matches the Query regular expression.
When Is Present is selected, the presence of the header selected from the Header Name is checked. Condition is triggered if the selected header is present in the incoming request to the Backend Service. Query is not checked.
- Case Insensitive
When the checkbox is selected Query parameter will be checked without regard to uppercase/lowercase letters. By default, it is unselected.
- Header Name
The desired HTTP header information can be written to be queried, and the listed header information can be selected. The desired header information can also be written manually.
The HTTP Request header information is selected to write a condition.
The HTTP Response header information is selected to write a condition.
- Query
Query for the selected HTTP header is entered.
- Condition Description
Condition description is generated automatically depending on the configuration.
- Form Buttons
- Example Usage
HTTP Header condition can be formed as below and can be used for Conditional Load Balancing. When the added "HTTP request header Host is www.tr7.com (Case insensitive)" condition and a Backend Service is selected, clients exactly matching the "www.tr7.com" HTTP host header are always directed to the selected Backend Service.