122 Citrix NetScaler Policy Configuration and Reference Guide
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.
HTTP.RES.SET_COOKIE.
COOKIE("name", integer).
VERSION
or
HTTP.RES.SET_COOKIE2.
COOKIE("name", integer).
VERSION
Returns the value of Version field of the nth
cookie as a decimal integer.
A string of zero length is returned if the Port
field or its value is absent.
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 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
Prefixes That Extract HTTP Headers
HTTP Header Prefix Description