Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manual de usuario Pagina 66

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 132
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 65
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");
}
Vista de pagina 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 131 132

Comentarios a estos manuales

Sin comentarios