Citrix Systems 9.2 Benutzerhandbuch

Seite von 302
Chapter 6        Advanced Expressions: Parsing HTTP, TCP, and UDP Data
119
HTTP.RES.SET_COOKIE.
COOKIE("name").PORT
or
HTTP.RES.SET_COOKIE2.
COOKIE("name").PORT
Returns the value of Port field of the cookie. 
Operate as a comma-separated list. 
For example, the following expression returns 
80. 2580 from Set-Cookie : Customer = 
"ABC"; PATH="/a/b/c"; PORT= "80, 2580":
http.res.set_cookie.
cookie("ABC").port 
A string of zero length is returned if the Port 
field or value is absent.
HTTP.RES.SET_COOKIE.
COOKIE("name").PORT.IGNORE_
EMPTY_ELEMENTS
or
HTTP.RES.SET_COOKIE2.
COOKIE("name").PORT.IGNORE_
EMPTY_ELEMENTS
Ignores the empty elements in the list. For 
example, in the list a=10,b=11, ,c=89, the 
element delimiter in the list is , and the list has 
an empty element following a=10. The 
element following b=11 is not considered an 
empty element. 
As another example, in the following 
expression, if a request contains Cust_Header 
: 123,,24, ,15 the following expression returns 
a value of 4:
http.req.header("Cust_Header").
typecast_list_t(',').ignore_
empty_elements.count 
The following expression returns a value of 5: 
http.req.header("Cust_Header").
typecast_list_t(',').count
HTTP.RES.SET_COOKIE.
COOKIE("name").VERSION
or
HTTP.RES.SET_COOKIE2.
COOKIE("name").VERSION
Returns the value of the first Version field in 
the cookie as a decimal integer. 
For example, the following expression returns 
1 from the cookie Set-Cookie : Customer = 
"ABC"; VERSION = "1"; VERSION = "0" 
http.res.set_cookie.
cookie("CUSTOMER").version 
A zero is returned if the Version field or its 
value is absent or if the value is not a decimal 
number.
HTTP.RES.SET_COOKIE.
COOKIE("name", integer)
or
HTTP.RES.SET_COOKIE2.
COOKIE("name", integer)
Returns the nth instance (0-based) of the 
cookie with the specified name. If the cookie 
is absent, returns a text object of length 0. 
Returns UNDEF if more than 15 Set-Cookie 
headers are present and the cookie is not 
found.
Prefixes That Extract HTTP Headers
HTTP Header Prefix
Description