160 Citrix NetScaler Policy Configuration and Reference Guide

Operators That Compare Text and HTTP Headers With a Pattern Set

Matching Operators

Description

 

 

http header.CONTAINS_INDEX

Operates on all the instances of the current header

(pattern_set_name)

type. Evaluates all header values, and returns the

 

index of the matching pattern in the pattern set

 

name argument that is present in any instance of a

 

header value. This operations works with the

 

following prefixes:

 

HTTP.REQ.COOKIE

 

HTTP.REQ.HEADER("header_name")

 

HTTP.RES.HEADER("header_name")

 

HTTP.RES.SET_COOKIE

 

HTTP.RES.SET_COOKIE2

text.EQUALS_INDEX(pattern_

Evaluates whether the target is an exact match with

set_name)

any of the strings that are bound to pattern_set_

 

name.

 

If an exact match is found, this operation returns

 

the numerical index of the matching string.

http header.EQUALS_INDEX

Operates on all the instances of the current header

(pattern_set_name)

type. Evaluates all header values and returns the

 

index of the matching pattern in the pattern set

 

name argument that is present in any instance of a

 

header value. This operations works with the

 

following prefixes:

 

HTTP.REQ.COOKIE

 

HTTP.REQ.HEADER("header_name")

 

HTTP.RES.HEADER("header_name")

 

HTTP.RES.SET_COOKIE

 

HTTP.RES.SET_COOKIE2

Configuring a Pattern Set

A pattern set contains a name and string patterns. Each string pattern is assigned an index that enables you to select the associated string from the set.

When you configure a pattern set, you can assign index values to the patterns, or you can let the NetScaler assign the index values, as follows:

When configuring the first pattern in the pattern set, if you omit an index the NetScaler generates an index and issues an error if you specify an index value for any additional patterns in the set.

If you provide an index for the first pattern in the set, you must provide an index for all subsequent patterns in the set.

Note: Pattern sets are case-sensitive.

Page 174
Image 174
Citrix Systems 9.2 manual Configuring a Pattern Set