Citrix Systems Network Router 9.2 Benutzerhandbuch

Seite von 302
118
Citrix NetScaler Policy Configuration and Reference Guide
HTTP.RES.SET_COOKIE.
COOKIE("name").PATH|PATH.
GET(n)
or
HTTP.RES.SET_COOKIE2.
COOKIE("name").PATH|PATH.
GET(n)
Returns the value of Path field of the cookie 
as a slash- (“/”) separated list. Multiple 
instances of a slash are treated as single slash. 
If multiple Path fields are present, the value of 
the first instance is returned. 
For example, the following is a cookie with 
two path fields:
Set-Cookie : Customer = "ABC"; 
PATH="/a//b/c"; PATH= "/x/y/z" 
The following expression returns /a//b/c from 
this cookie:
http.res.set_cookie.
cookie("Customer").path
The following expression returns b:
http.res.set_cookie.
cookie("Customer").path.get(2)
Quotes are stripped from the returned value. 
A string of zero length is returned if the Path 
field or its value is absent.
HTTP.RES.SET_COOKIE.
COOKIE("name").PATH.IGNORE_
EMPTY_ELEMENTS
or
HTTP.RES.SET_COOKIE2.
COOKIE("name").PATH.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
Prefixes That Extract HTTP Headers
HTTP Header Prefix
Description