HTTP request headers are additional pieces of information that are sent along with the request to the server. You can add, delete, change, and replace HTTP headers in origin requests to meet various business requirements.
Overview
When Edge Security Acceleration (ESA) points of presence (POPs) retrieve requested resources from an origin server, the origin server can obtain information included in request headers. ESA allows you to rewrite HTTP headers in origin requests and pass specific parameters to the origin server.
Usage notes
Origin requests are requests that retrieve resources requested by clients from the origin server. The configurations of HTTP headers in origin requests affect only HTTP messages that are transmitted by ESA to the origin server.
Modify a request header
Log on to the ESA console.
In the left-side navigation pane, click Websites.
On the Websites page, find the website that you want to manage, and click the website name or View Details in the Actions column.
In the left-side navigation tree, choose
.Click the Modify Request Header tab.
Click Create Rule. On the page that appears, enter a rule name in the Rule Name field. Then, specify the characteristics of the requests that you want to match and modify the configurations of the request headers.
Operation
Description
Example
Add
Adds a specific request header to origin requests.
If you want to add a request header whose name is x-code and value is key1, set the parameters to the following values:
Request Header Name: x-code
Request Header Value: key1
Delete
Deletes all request headers that match the value of the Request Header Name parameter from origin requests, regardless of how many such request headers exist.
If you want to delete a request header whose name is x-code, specify x-code in the Request Header Name parameter.
Change
Changes the value of a specific request header in origin requests.
If you want to change the value of a request header whose name is x-code to key2, set the parameters to the following values:
Request Header Name: x-code
Request Header Value: key2
NoteYou cannot specify a value that starts with ali- or Ali- for the Request Header Name parameter.
You can specify one or more values for the Request Header Value parameter. Separate multiple values with commas (,).
Click OK.