86 Citrix NetScaler Policy Configuration and Reference Guide

VPN and Clientless VPN Expression Prefixes that Return Text

VPN and Clientless VPN

Description

Expression

 

 

 

VPN.HOST.EQ("hostname")

Returns a Boolean TRUE value if the host name

 

matches the hostname. The comparison is case

 

insensitive.

 

For example, if the host name is www.

 

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

 

the following returns TRUE:

 

vpn.host.eq("www.mycompany.com")

 

If the text mode is URLENCODED the host name

 

is decoded before comparison. For more

 

information, see “Operations for HTTP, HTML,

 

and XML Encoding and “Safe” Characters,” on

 

page 131.

 

 

VPN.HOST.SERVER

Extracts the server name part of the host name. For

 

example, if the host name is www.mycompany.

 

com or www.mycompany.com:8080, the server is

 

www.mycompany.com.

 

All text operations after this prefix are case

 

insensitive.

 

 

Operations on Text

The following sections describe text operations that examine text.

Be aware of the following conditions for any text-based operation:

For any operation that takes a string argument, the string cannot exceed 255 characters.

You can include white space when you specify a string in an expression.

Basic Operations on Text

The following table lists basic operations on text.

Basic Operations on Text

Basic Text Operation

Description

 

 

text.CONTAINS("string")

Returns a Boolean TRUE value if the target contains

 

string.

 

Following is an example:

 

http.req.url.contains(".jpeg")

Page 100
Image 100
Citrix Systems 9.2 manual Basic Operations on Text, Returns a Boolean True value if the target contains, String