Citrix Systems 9.2 Benutzerhandbuch

Seite von 302
86
Citrix NetScaler Policy Configuration and Reference Guide
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.
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 
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.
VPN and Clientless VPN Expression Prefixes that Return Text
VPN and Clientless VPN 
Expression
Description
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")