Citrix Systems Network Router 9.2 User Manual

Page of 302
130
Citrix NetScaler Policy Configuration and Reference Guide
The following table describes prefixes for HTTP URLs that are not described 
elsewhere.
Expressions for Numeric HTTP Payload Data Other Than 
Dates
The following table describes prefixes for numeric values in HTTP data other 
than dates. You would use numeric operations with the following prefixes.
Prefixes That Extract URLs
URL Prefix
Description
HTTP.REQ.URL.PATH.
GET(n)
Returns a slash- (“/”) separated list from the URL path. 
For example, consider the following URL:
http://www.mycompany.com/dir1/dir2/dir3/
index.html?a=1 
The following expression returns dir1 from this URL:
http.req.url.path.get(1) 
The following expression returns dir2:
http.req.url.path.get(2)
HTTP.REQ.URL.PATH.GET_
REVERSE(n)
Returns a slash- (“/”) separated list from the URL path, 
starting from the end of the path. For example, consider 
the following URL:
http://www.mycompany.com/dir1/dir2/dir3/
index.html?a=1 
The following expression returns index.html from this 
URL:
http.req.url.path.get_reverse(0)
The following expression returns dir3:
http.req.url.path.get_reverse(1)
Prefixes That Evaluate HTTP Request or Response Length
Prefix
Description
HTTP.REQ.CONTENT_LENGTH
Returns the length of an HTTP request as a 
number.
Following is an example:
http.req.content_length < 500
HTTP.RES.CONTENT_LENGTH
Returns the length of the HTTP response as a 
number.
Following is an example:
http.res.content_length <= 1000