Trying to use the class to post some data with the following code:
include('webclass.php');
$req = new webRequest2();
$content = $req->simpleGet('http://www.racingpost.com/');
$req = new webRequest2();
$req->debugMode = WRD_ECHO;
$req = new webRequest2();
$req->domain = 'https://reg.racingpost.com';
$req->url = '/modal_dialog/login.sd?protoSecure=0';
$req->debugMode = WRD_LOG;
$req->debugLogFile = 'gettest.txt';
$req->debugLogClearOnDispatch = true;
$req->addPostParam('in_un', 'wellyfish');
$req->addPostParam('in_pw', 'wellyfish99');
$req->addPostParam('process', 'IN');
$req->addPostParam('logInType', 'lightbox');
$req->addPostParam('PARGS', '');
$req->addPostParam('protoSecure', '0');
$req->method='POST';
$req->dispatch();
echo $req->getRawResponse();
getting the following errors:
Notice: Undefined index: content-length in C:\Server\RP\webclass.php on line 468
Notice: Undefined index: transfer-encoding in C:\Server\RP\webclass.php on line 476
anyone tell me why they are throwing?
Cheers