ADC Advanced Policy Expressions

HTTP_RES_T

Operates HTTP Response.

This topic lists the expressions that are provided by this class.

BODY(uint i)

Operate as Text on the HTTP response body. The length of the body is equal

to the number in the argument. If there aren't enough characters in the

body then the entire body is selected.

Parameters:

i -

                        Body length

Returns: text_t

CACHE_CONTROL

Returns the HTTP Cache-Control object

Returns: http_cache_control_t

CONTENT_LENGTH

Returns the length of the HTTP response as a number.

Returns: http_content_length_t

DATE

Returns the contents of the HTTP Date header as text or as a date object.The date formats

recognized are:

RFC822. Sun, 06 Jan 1980 08:49:37 GMT

RFC850. Sunday, 06-Jan-80 9:49:37 GMT

ASCTIME. Sun Jan 6 08:49:37 1980

Returns: http_date_t

FULL_HEADER

Returns the entire response header (including the

terminating \r\n\r\n)

Returns: text_t

HEADER(text_theader_name)

Returns the contents of the HTTP headerspecified by the String argument.

The header name cannot be longer than 32 characters.

Parameters(expressions not allowed):

header_name -

                        Header Name

Returns: http_header_t

IS_CLIENT_ERROR

Returns True if response code is 4xx.

Returns: bool_at

IS_INFORMATIONAL

Returns True if response code is 1xx.

Returns: bool_at

IS_REDIRECT

Returns True if response code is 3xx.

Returns: bool_at

IS_SERVER_ERROR

Returns True if response code is 5xx.

Returns: bool_at

IS_SUCCESSFUL

Returns True if response code is 2xx.

Returns: bool_at

IS_VALID

Returns TRUE if the HTTP request is properly formed.

Returns: bool_at

MEDIA

Designates an expression that refers to media analytics

Returns: media_t

SET_COOKIE

Obtain the HTTP Set-Cookie Header Object from this response.

Returns: http_set_cookie_t

SET_COOKIE2

Obtain the HTTP Set-Cookie2 Header Object from this response.

Returns: http_set_cookie_t

STATUS

Returns the HTTP response status code.

Returns: num_t

STATUS_MSG

Returns the HTTP response status message.

Returns: text_t

TRACKING

Returns the HTTP body tracking mechanism.

Returns: http_tracking_e

TXID

Returns the HTTP Transaction ID. The value is a function of

an internal transaction number, system boot time and system

mac address. HTTP.REQ.TXID is same as HTTP.RES.TXID.

Returns: text_t

VERSION

Returns the HTTP version.

Returns: http_version_t

HTTP_RES_T

In this article