Os_http_request::remove_all_headers($name), Input parameters, Return values – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual
Page 66: Example, Context

54
Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
5
Input Parameters
The following table contains the input values.
Return Values
None
Example
OS_HTTP_REQUEST::remove_all_headers($name)
Removes all HTTP headers with the same specified names. If such a header is not present, this
function will have no effect.
NOTE
This API will remove all headers with the value specified for the $name variable (case insensitive).
For example, OS_HTTP_REQUEST::remove_all_headers("X-Forwarded-For") will remove ALL
occurrences of headers by that name (case-insensitive).
Context
This function called in a context other than the http request context will have no effect.
Input Parameters
The following table contains the input values.
Return Values
None
TABLE 51
Input Values
Name
Type
Description
$name
string
A string representing the name
of the HTTP header.
TABLE 52
Input Values
Name
Type
Description
$name
string
A string representing the name
of an HTTP header.
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
OS_HTTP_REQUEST::remove_header("X-forwarded-for");
}