Can anyone see what the problem is here. It does connect without error but the data is not posted for some reason. I posted this before but no one has replied, so I am at the begging stage. I can do it just using curl, but I cant figure out why htis doesnt work.
Thanks.
//pears net curl package
include 'Curl.php';
$conn=new Net_Curl('http://localhost/teststuff/curltest.php');
if (Net_Curl::isError($conn)){
die(sprintf('Error [%d]: %s',$conn->getCode(),$conn->getMessage()));
}
$conn->type='POST';
$conn->fields=array("field1"=>"value1","field2"=>"value2","field3"=>"value3");
$data=$conn->execute();
if (Net_Curl::isError($conn)){
die(sprintf('Error [%d]: %s',$data->getCode(),$data->getMessage()));
}