130 Citrix NetScaler Policy Configuration and Reference Guide

The following table describes prefixes for HTTP URLs that are not described elsewhere.

Prefixes That Extract URLs

URL Prefix

Description

 

 

HTTP.REQ.URL.PATH.

Returns a slash- (“/”) separated list from the URL path.

GET(n)

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_

Returns a slash- (“/”) separated list from the URL path,

REVERSE(n)

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)

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 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

 

 

Page 144
Image 144
Citrix Systems 9.2 manual Expressions for Numeric Http Payload Data Other Than Dates, Prefixes That Extract URLs