Chapter 4 Advanced Expressions: Evaluating Text 73

HTTP Expression Prefixes that Return Text

Prefix

Description

 

 

HTTP.REQ.USER.GROUPS.

Ignores the empty elements in the list of groups to

IGNORE_EMPTY_ELEMENTS

which the user belongs.

 

If the element delimiter in the list is a comma (","), then

 

the following list has an empty element following

 

"a=10":

 

a=10,,b=11, ,c=89

 

But the element following "b=11" is not considered an

 

empty element.

 

For example, consider the following header in an HTTP

 

request packet:

 

Cust_Header : 123,,24, ,15

 

The following expression returns a value of 4:

 

HTTP.REQ.HEADER("Cust_Header").TYPECAST_

 

LIST_T(','). IGNORE_EMPTY_ELEMENTS.COUNT

 

The following expression returns a value of 5:

 

HTTP.REQ.HEADER("Cust_Header").TYPECAST_

 

LIST_T(',').COUNT.

HTTP.REQ.USER.INTERNAL_

Returns a list of internal groups to which the user

GROUPS

belongs. The groups are separated by a comma (",").

 

For example, the following expression returns a

 

comma-separated list of all the internal groups to which

 

a user belongs.

 

HTTP.REQ.USER.INTERNAL_GROUPS

 

 

HTTP.REQ.USER.INTERNAL_

Ignores the empty elements in the list of internal groups

GROUPS.IGNORE_EMPTY_

to which the user belongs.

ELEMENTS

If the element delimiter in the list is a comma (","), then

 

the following list has an empty element following

 

"a=10":

 

a=10,,b=11, ,c=89

 

But the element following "b=11" is not considered an

 

empty element.

 

For example, consider the following header in an HTTP

 

request packet:

 

Cust_Header : 123,,24, ,15

 

The following expression returns a value of 4:

 

HTTP.REQ.HEADER("Cust_Header").TYPECAST_

 

LIST_T(','). IGNORE_EMPTY_ELEMENTS.COUNT

 

The following expression returns a value of 5:

 

HTTP.REQ.HEADER("Cust_Header").TYPECAST_

 

LIST_T(',').COUNT

 

 

Page 87
Image 87
Citrix Systems 9.2 Returns a list of internal groups to which the user, For example, the following expression returns a