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_CONTROLReturns the HTTP Cache-Control object
Returns: http_cache_control_t
-
CONTENT_LENGTHReturns the length of the HTTP response as a number.
Returns: http_content_length_t
-
DATEReturns 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_HEADERReturns the entire response header (including the terminating \\r\\n\\r\\n)
Returns: text_t
HEADER (text_t header_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_ERRORReturns True if response code is 4xx.
Returns: bool_at
-
IS_INFORMATIONALReturns True if response code is 1xx.
Returns: bool_at
-
IS_REDIRECTReturns True if response code is 3xx.
Returns: bool_at
-
IS_SERVER_ERRORReturns True if response code is 5xx.
Returns: bool_at
-
IS_SUCCESSFULReturns True if response code is 2xx.
Returns: bool_at
-
IS_VALIDReturns TRUE if the HTTP request is properly formed.
Returns: bool_at
-
MEDIADesignates an expression that refers to media analytics
Returns: media_t
-
SET_COOKIEObtain the HTTP Set-Cookie Header Object from this response.
Returns: http_set_cookie_t
-
SET_COOKIE2Obtain the HTTP Set-Cookie2 Header Object from this response.
Returns: http_set_cookie_t
-
STATUSReturns the HTTP response status code.
Returns: num_t
-
STATUS_MSGReturns the HTTP response status message.
Returns: text_t
-
TRACKINGReturns the HTTP body tracking mechanism.
Returns: http_tracking_e
-
TXIDReturns 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
-
VERSIONReturns the HTTP version.
Returns: http_version_t