Information may be Out-of-Date
This page about deprecated software versions is shown for
reference purposes only. Information on this page is not
maintained and may no longer be valid.
Please find the latest manual for Webserver Stress Tool here:
OnAfterRequest
OnAfterRequest
OnAfterRequest is called after each single HTTP Request of a user (i.e. clicks, images, frames etc.) and can be used to log data and parse the results. E.g. if you need some part of the HTML code to be reused in subsequent requests this is the place to extract this string from the HTML.
Input Parameters:
data.usernumber |
(Integer) |
Number of simulated user (first user is #0) |
data.clickcount |
(Integer) |
Number of finished clicks (first click is #0) |
data.requestcount |
(Integer) |
Number of finished requests (first request is #0) |
data.requesttype |
(String) |
Type of Request (e.g. CLICK, IMAGE, FRAME) |
request.html |
(String) |
Resulting HTML of this request (can be raw GIF/JPG data for images) |
request.receivedheader |
(String) |
Resulting HTTP Headers from the server |
request.result |
(String) |
Result of a request (e.g. OK, Error) |
request.resultcode |
(String) |
HTTP-Resultcode of a request (e.g. 200, 404, etc) |
Output Parameters:
data.log |
(String) |
if not empty this text is added to the user's log |
data.token |
(String) |
Use this variable to store e.g. tokens from one click or request to the next |
request.additionalheader |
(String) |
Additional lines for the HTTP header sent to the server |