Chapter 6 Advanced Expressions: Parsing HTTP, TCP, and UDP Data 117

Prefixes That Extract HTTP Headers

HTTP Header Prefix

Description

 

 

HTTP.RES.SET_COOKIE

Returns the HTTP Set-Cookie header object

or

in a response.

 

HTTP.RES.SET_COOKIE2

 

HTTP.RES.SET_COOKIE("name")

Returns the cookie of the specified name if it

or

is present. If it is not present, returns a text

object of length 0. Returns UNDEF if more

HTTP.RES.SET_COOKIE2("name")

than 15 Set-Cookie headers are present and

the specified cookie was not found in these

 

headers.

 

 

HTTP.RES.SET_COOKIE("name").

Returns the value of the first Domain field in

DOMAIN

the cookie. For example, if the cookie is Set-

or

Cookie : Customer = "ABC"; DOMAIN=".

abc.com"; DOMAIN=.xyz.com, the

HTTP.RES.SET_COOKIE2("name").

following expression returns .abc.com:

http.res.set_cookie.

DOMAIN

 

cookie("customer").domain

 

A string of zero length is returned if the

 

Domain field or its value is absent.

HTTP.RES.SET_COOKIE.

Returns a Boolean TRUE if a Cookie with the

EXISTS("name")

name specified in the name argument exists in

or

the Set-Cookie header.

This prefix returns UNDEF if more than 15

HTTP.RES.SET_COOKIE2.

Set-Cookie headers are present and the named

EXISTS("name")

cookie is not in the first 15 headers.

HTTP.RES.SET_COOKIE.

Returns the Expires field of the cookie. This is

COOKIE("name").EXPIRES

a date string that can be evaluated as a

or

number, as a time object, or as text. If multiple

Expires fields are present, the first one is

HTTP.RES.SET_COOKIE2.

returned. If the Expires field is absent, a text

object of length zero is returned.

COOKIE("name").EXPIRES

To evaluate the returned value as a time

 

 

object, see “Advanced Expressions: Working

 

with Dates, Times, and Numbers,” on page

 

95.

 

 

Page 131
Image 131
Citrix Systems 9.2 manual Advanced Expressions Parsing HTTP, TCP, and UDP Data