Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manual do Utilizador Página 66

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 132
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 131 132

Comentários a estes Manuais

Sem comentários