122Citrix NetScaler Policy Configuration and Reference Guide

Prefixes That Extract HTTP Headers

HTTP Header Prefix

Description

 

 

HTTP.RES.SET_COOKIE.

Returns the value of Version field of the nth

COOKIE("name", integer).

cookie as a decimal integer.

VERSION

A string of zero length is returned if the Port

or

field or its value is absent.

HTTP.RES.SET_COOKIE2.

 

COOKIE("name", integer).

 

VERSION

 

HTTP.RES.TXID

Returns the HTTP transaction ID. The value

 

is a function of an internal transaction

 

number, system boot time and system MAC

 

address.

 

 

Operations for HTTP Headers

The following table describes operations that you can specify with the prefixes for HTTP headers.

Note that if the same operation is also used to evaluate text, the header-based operation always overrides any text-based operation. For example, the AFTER_ STR operation, when applied to a header, overrides text-based AFTER_STR operations for all instances of the current header type.

Operations That Evaluate HTTP Headers

HTTP Header Operation

Description

 

 

http header.EXISTS

Returns a Boolean TRUE if an instance of the specified

 

header type exists.

 

Following is an example:

 

http.req.header("Cache-Control").exists

Page 136
Image 136
Citrix Systems 9.2 manual Operations for Http Headers, Operations That Evaluate Http Headers, Header type exists