120 Citrix NetScaler Policy Configuration and Reference Guide

Prefixes That Extract HTTP Headers

HTTP Header Prefix

Description

 

 

HTTP.RES.SET_COOKIE.

Returns the value of the Domain field of the

COOKIE("name", integer).DOMAIN

first cookie with the specified name. For

or

example, the following expression returns a

value of abc.com from the cookie Set-Cookie

HTTP.RES.SET_COOKIE2.

: Customer = "ABC"; DOMAIN=".abc.com";

DOMAIN=.xyz.com

COOKIE("name", integer).DOMAIN

 

http.res.set_cookie.

 

cookie("CUSTOMER").domain

 

A string of zero length is returned if the

 

Domain field or its value is absent.

 

 

HTTP.RES.SET_COOKIE.

Returns the nth instance (0-based) of the

COOKIE("name", integer).

Expires field of the cookie with the specified

EXPIRES

name as a date string. The value can be

or

operated upon as a time object that supports a

number of date formats. If the Expires

HTTP.RES.SET_COOKIE2.

attribute is absent a string of length zero is

returned.

COOKIE("name", integer).

 

EXPIRES

 

HTTP.RES.SET_COOKIE.

Returns the value of the Path field of the nth

COOKIE("name", integer).PATH

cookie, as a '/' separated list. Multiple /s are

PATH.GET(i)

treated as a single /.

or

For example, the following expression returns

HTTP.RES.SET_COOKIE2.

/a//b/c from the cookie Set-Cookie : Customer

= "ABC"; PATH="/a//b/c"; PATH= "/x/y/z"

COOKIE("name", integer).PATH

http.res.set_cookie.

PATH.GET(i)

cookie("CUSTOMER").path

 

 

The following returns b:

 

http.res.set_cookie.

 

cookie("CUSTOMER").path.get(2)

 

A string of zero length is returned if the Path

 

field or its value is absent.

 

 

Page 134
Image 134
Citrix Systems 9.2 manual Returns the value of the Domain field, First cookie with the specified name. For, DOMAIN=.xyz.com