Hi there,
I have installed curl, it's really great, but I think my web host didn't install it right. I CAN GET POST RESULTS BACK FROM A PAGE, BUT NOT FROM THE SAME PAGE USING HTTPS (SECURE SOCKET LAYER).
I know the ssl on the page is correct, can you see anything wrong with this code? It works if I call to a non-secure page.
$test_url="https://securesite.com/page.php";
$data="field1=this&field2=that";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $test_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
Like I said, I get a good result if I use https, but not http.