Parameter |
Type / allowed values |
Description |
$server= |
String |
Name (or IP) of the server being tested. |
$port= |
Integer |
Port number of the tested application. |
$uri= |
URI
$href(text)
$action
$var(name,default) |
URI of the current request. Either static text or one of the following:
$href(text) – extracts the URI from the link containing the specified text (in the response to the previous request).
$action – extracts the URI from the form action (in the response to the previous request.
$var(name,default) – takes the value of the variable set previously by the $exportvar function. If the variable is undefined, uses default instead. |
$method= |
GET/POST |
HTTP request method. |
$keepalive= |
0/1 |
Triggers the use of keep-alive requests. |
$delay= |
Integer |
Delay inserted after request (milliseconds). |
$fail= |
[!]/regexp/ |
If the regular expression is matched in the response, the request is considered failed (see Failerrorsymbol in Syntax (global parameters). The exclamation point (!) preceding the regular expression inverts the matching result: i.e., a request is considered failed if the regular expression was NOT matched. |
$exportvar= |
{varname},/regexp/,{replacestring} |
Extracts the value from the response according to regexo and saves the respective replacestring to the external variable varname. Replacestring can use the $0-$9 constructs – according to elements matched by the regular expression. $0 stands for the whole matching expression. |