7-62
User
Guide

for

the

Cisco

Application

Networking

Manager

5.2
OL-26572-01
Chapter
7






Configuring

Virtual

Servers
Configuring
Virtual

Servers
$http_query_param(query-param-name)
The
obsolete

syntax

is

also

supported:
$param(query-param-name)
Expands
to

the

value

of

the

named

query

parameter

(case-sensitive).
For
example,

if

the

URL

is
http://server/main/sub/a.jsp?category=shoes&session=99999,
then
the
following

are

correct:
$http_query_param(category)
=

shoes
$http_query_param(session)
=

999

99
If
the

specified

parameter

does

not

exist

in

the

query,

then

the
variable
expands

to

the

empty

string.

This

function

applies

to

both
GET
and

POST

requests.
$http_cookie(cookie-name)
Evaluates
to

the

value

of

the

named

cookie.

For

example,
$http_cookie(cookiexyz).
The

cookie

name

is

case-sensitive.
$http_header(request-header-name)
Evaluates
to

the

value

of

the

specified

HTTP

request

header.

In

the
case
of

multivalued

headers,

it

is

the

single

representation

as
specified
in

the

HTTP

specification.

For

example,
$http_header(user-agent).
The

HTTP

header

name

is

not
case-sensitive.
$http_method()
Evaluates
to

the

HTTP

method

used

for

the

request,

such

as

GET

or
POST.
Boolean
Functions:
$http_query_param_present(query-param-name)
$http_query_param_notpresent(query-param-name)
$http_cookie_present(cookie-name)
$http_cookie_notpresent(cookie-name)
$http_header_present(request-header-name)
$http_header_notpresent(request-header-name)
$http_method_present(method-name)
$http_method_notpresent(method-name)
Evaluates
to

a

Boolean

value:

True
or
False,
depending

on

the
presence
or

absence

of

the

element

in

the

request.

The

elements

are
a
specific

query

parameter

(query-param-name),

a

specific

cookie
(cookie-name),
a

specific

request

header

(request-header-name),

or
a
specific

HTTP

method

(method-name).

All

identifiers

are
case-sensitive
except

for

the

HTTP

request

header

name.
$regex_match(param1,
param2)
Evaluates
to

a

Boolean

value:

True

if

the

two

parameters

match

and
False
i

f

they

do

not

match.

The

t

wo

parameters

can

be

any

two
expressions,
including

regular

expressions,

that

evaluate

to

two
strings.
For

example,

this

function:
$regex_match($http_query_param(URL),
.*Store\.asp.*)
compares
the

query

URL

with

the

regul

ar

expression

st

ring
.*Store\.asp.*
If
the

URL

matches

this

regular

expression,

this

function

evaluates
to
True.
Table
7-19
Parameter
Expander

Functions

(continued)
Variable
Description