LOAD RESPONSE_INFO BODY Command
Description:
This command loads a character variable with all or part of the data from an HTTP response message body for a specified TCP connection. It is used after a GET, HEAD or POST command.
OpenSTA will automatically wait until any request on the specified connection ID is complete before executing this command. It is not necessary for the script to do this explicitly.
If the data string is too long to fit into the target variable, it will be truncated. For a response message body containing an HTML document, the "WITH" clause may be used to load a character variable with an element or part of an element from the document.
Format:
LOAD RESPONSE_INFO BODY ON conid INTO variable {&} {,WITH identifier}Parameters:
conid
An integer variable, integer value or integer expression identifying the Connection ID of the TCP connection on which the HTTP response message will be received.
variable
The name of a character variable into which the HTTP response message body, or the selected part of it, are loaded.
identifier
A character variable, quoted character string or character expression identifying the data to be retrieved from the response message body. For a definition of the identifier format see LOAD RESPONSE_INFO BODY Identifiers.
Example:
LOAD RESPONSE_INFO BODY ON 1 INTO post_body
OpenSTA.org Mailing Lists Further enquiries Documentation feedback CYRANO.com |