• English
    • Deutsch
    • Español
    • Français
    • Italiano
    • Português
    • Pусский

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:

Manual Webserver Stress Tool (pdf)
 

Navigation: Contents   Index   Previous   Next

OnAfterRequest Samples

Writing to the user’s logfile

data.log="Finished request number "+inttostr(data.requestcount)+" with resultcode "+inttostr(request.resultcode)+" ("+request.result+")"

The following code dumps HTML and headers into the log

data.log=data.log+crlf+"==header===================================="+crlf+request.receivedheader+crlf+"============================================"

data.log=data.log+crlf+"==html======================================"+crlf+request.html+crlf+"============================================"

Writing the HTML (or any other data) of a request to a diskfile. Please edit the filename/filepath for your needs!

a=savestringtofile("d:\temp\Data of user number "  

      +inttostr(data.usernumber)+" request number "

      +inttostr(data.requestcount)+".txt",request.html)

if a<>0 then data.log="Could not write file (result="

      +inttostr(a)+")" end if

Navigation: Contents   Index   Previous   Next