Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manuale Utente Pagina 69

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 132
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 68
Brocade Virtual ADX OpenScript API Guide 57
53-1003243-01
Methods
5
Return Values
The following table contains the return values.
Example
OS_HTTP_REQUEST::cookie ($name, $value)
Sets the cookie value specified by $name.
Context
HTTP request event. If called in the HTTP response context, undefined will be returned.
Usage
Can be used to rewrite the cookie value.
Input Parameters
The following table contains the input values.
Return Values
None
Example
TABLE 56 Return Values
Name Type Description
string Value of the cookies specified by $name.
If not present, undefined is returned.
TABLE 57 Input Values
Name Type Description
$name string A string representing the cookie
name.
$value string A string representing the cookie
value.
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
my $server_id = OS_HTTP_REQUEST::cookie("ServerID");
}
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
OS_HTTP_REQUEST::cookie("ServerID", $server_id);
}
Vedere la pagina 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 131 132

Commenti su questo manuale

Nessun commento