Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Instrukcja Użytkownika Strona 55

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 132
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 54
Brocade Virtual ADX OpenScript API Guide 43
53-1003243-01
Methods
5
Example
OS_HTTP_REQUEST::query($val)
Sets the value of the URL query to the value specified in $val.
Context
HTTP request event. If called in the HTTP response context, undefined will be returned.
Usage
Can be used to rewrite a url query.
Input Parameters
The following table contains the input values.
Return Values
None
Example
TABLE 36 Input Values
Name Type Description
$val string A string representing the value
of the url. query
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
my $query = OS_HTTP_REQUEST::query;
my $method = OS_HTTP_REQUEST::method;
if ( defined $querry && $query eq "search=sometext") {
OS_SLB::forward(1);
} elsif ( defined $query && query eq "search=othertext") {
OS_SLB::forward(2);
}
}
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST() {
OS_HTTP_REQUEST::query("myname=search");
OS_SLB::forward(1);
}
Przeglądanie stron 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 131 132

Komentarze do niniejszej Instrukcji

Brak uwag