Get Command


This command issues an HTTP/S GET request for a specified resource.
The "Check Contains" option allows to search the presence of a character string in the response of http request.

Remark: The "Add check on page title" record option adds automatically a "Check contains" on the http request in order to validate that the web page title is correct.



httpMode [ PRIMARY ] GET HOST hostname URL url
[ IDENTIFIER request_id ]
[ HEADERS {http_headers} ]
[ COOKIES {cookies} ]
[ RESPONSE_TIMER timer_name ]
[ RETRY retry_number ]
[ REFERER referer_id ]
[ CHECK check_name CONTAINS checkContainsExpression ON_FAILED checkAction ]
[ CHECK check_name CONDITION checkExpression ON_FAILED checkAction ]
[ variable1 = expression1 ] [ variable2 = expression2 ] ...



Possible values are:

HTTP  The request is sent in non-secured mode 
HTTPS The request is sent in secured mode (SSL)


The optional PRIMARY keyword denotes primary HTTP requests such as those referred to by the "referrer" header in secondary requests. PRIMARY requests are most of the time the first HTTP/S requests sent after a user action in the browser.


A string expression containing the URL host name field.


A character variable, quoted character string or character expression containing the URL path field.


An integer constant representing the request identifier (should not be modified).


Indicates cached information should not be used.


A string value list (comma separated list of character strings) containing http headers to add to this requests.
If a CONFIGURATION command precedes the request in the script, http headers included in the CONFIGURATION command will also be added to the request.


A string value list (comma separated list of character strings) containing additional cookies to be sent with this request.
Cookies which are sent by the server via "Set-Cookies" HTTP headers are not shown in the recorded script since they will be managed automatically by the HTTP injector during the replay.
The record engine adds the COOKIES option to a request if the request contains 'unknown' cookies (cookies which were not sent by the server during record session). These are usually cookies which were already stored by the client before the record has started.


A timer name. The timer value will be the time to load this request.
Note that this option will pause the script execution until the response is loaded.


An integer variable containing the number of times the request should be attemped again.
If this option is not set, the Retry_Count value specified in the TExecuter_web.ini file is used.


An integer variable to identify which request must be specified in the 'Referer' header.
The request that has the same request_id as referer_id is used.


A string expression containing a check name. This name appears in the audit log message if the check fails.


An integer expression. If the expression is evaluated to zero, the check fails, otherwise the check succeed.


character string expression to search in the request response.


The action to execute if the check failed, possible values are:

CONTINUE  The virtual user continue to execute the script.
EXIT_SCRIPT  The virtual user exit the current script.
STOP USER  The virtual user is stopped.
GOTO labelName  The virtual user jumps to the specified 'labelName' label.

variable1 = expression1
variable2 = expression2

You can attach some variable assignments to a request in order to extract some parts of the response and use them further in the script.


    CHECK "AgileLoad BookStore - Home" CONTAINS "AgileLoad BookStore - Home" ON_FAILED STOP USER

See Also:

Go back to the Learning center:

Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap