Chapter 4 Advanced Expressions: Evaluating Text 85

VPN and Clientless VPN Expression Prefixes that Return Text

VPN and Clientless VPN

Description

Expression

 

 

 

VPN.CLIENTLESS_HOSTURL.

Ignores empty elements in a name-value list. For

QUERY.IGNORE_EMPTY_

example, the following list uses a semicolon (;)

ELEMENTS

delimiter. This list contains an empty element after

 

“a=10”:

 

a=10;;b=11; ;c=89

 

In the preceding example, the element following

 

b=11 is not considered an empty element.

 

Consider the following header:

 

Cust_Header : a=1;;b=2; ;c=3

 

The following expression returns a value of 4 after

 

evaluating this header:

 

http.req.header("Cust_Header").

 

typecast_nvlist_t('=',';').ignore_

 

empty_elements.count

 

The following expression returns a value of 5 after

 

evaluating the same header:

 

http.req.header("Cust_Header").

 

typecast_nvlist_t('=',';')

VPN.CLIENTLESS_HOSTURL.

Extracts a file name suffix in a URL.

SUFFIX

For example, if the path is /a/b/c/my.page.html,

 

this prefix selects html.

 

 

VPN.HOST.DOMAIN

Extracts the domain name part of the host name.

 

For example, if the host name is www.

 

mycompany.com or www.mycompany.com:8080,

 

the domain is mycompany.com.

 

This prefix returns incorrect results if the host

 

name contains an IP address. For information on

 

expressions for IP addresses, see “Advanced

 

Expressions: IP and MAC Addresses,

 

Throughput, VLAN IDs,” on page 149.

 

All text operations after this prefix case insensitive.

 

 

Page 99
Image 99
Citrix Systems 9.2 manual Example, the following list uses a semicolon, Preceding example, the element following