HTTP:header_insert(header_name, value)
Inserts the header <header_name> with value <value> into the end of the HTTP request or response.
Syntax
HTTP:header_insert(header_name, value);
Arguments
| Name | Description |
|---|---|
|
Header_name |
A string which specifies the header name. |
|
Value |
A string which specifies the value of the header<header_name>. |
Events
Applicable in the following events:
-
HTTP_REQUEST
-
HTTP_RESPONSE
Example
when HTTP_REQUEST {
HTTP:header_insert(“Cookie”, “insert_cookie=server1”)
}
Supported Version
FortiADC version 4.3.x and later.