Class LoadTestingSession
Load Testing Session is the CURL wrapper. This is not required but does provide some easy calling and managing of web requests.
CURL Options Set by Default include CURLOPT_RETURNTRANSFER (1) CURLOPT_HEADER (0) - Do not include headers in output CURLOPT_FOLLOWLOCATION (1) - Follow Redirects CURLOPT_FRESH_CONNECT (0) - Do not use persist connections. CURLOPT_ENCODING ('') - Enable compression CURLOPT_CONNECTTIMEOUT (30) - 30 second time out CURLOPT_TIMEOUT (120) - Overall timeout CURLOPT_COOKIEJAR - Setup location for cookie jar. CURLOPT_SSL_VERIFYPEER (0) - Don't validate SSL
Located at LoadTestingSession.class.php
public
|
#
__construct( integer $testNum, string $rand, string $cookieDir = 'cookies', string $outputDir = 'output' )
Constructor |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
#
fetchRawDataFromUrl( string $url, mixed $post = null, array $headers = array(), boolean $saveData = false )
Fetch raw data form a URL with no delays or output |
public
string
|
|
public
|
#
goToUrl( string $url, mixed $post = null, array $headers = array(), boolean $saveData = false, $isUser = true )
Go to a url. |
public
|
|
public
string
|
integer |
LOAD_RESOURCES
Load Resources Flag |
#
0x00000001
|
integer |
VERBOSE
Verbose Flag |
#
0x00000002
|
public
|
$loadableResourceBaseUrl
Base URL that resources will be loaded for |
#
null
|