
42 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::query
Returns URL query specified in the HTTP request header if it exists, otherwise it will return NULL.
Context
HTTP request event. If called in the HTTP response context, undefined will be returned.
Usage
Can be used to perform load-balancing based on a url query.
Input Parameters
None.
Return Values
The following table contains the return values.
TABLE 34 Input Values
Name Type Description
$val string A string representing the value
of the URL path
TABLE 35 Return Values
Name Type Description
string Value of the URL query. If not
present, undefined is returned.
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
OS_HTTP_REQUEST::path("/search/");
}
Komentarze do niniejszej Instrukcji