Hello
We are sending important information by post to another site, information that must be sent 1 time only...here is the pb..because when the curl time out appear I can't be sure that the remote site didn't get the info..here is how I test..if you have any sugestion.
$ch2=curl_init();
curl_setopt($ch2, CURLOPT_URL,$url3);
curl_setopt($ch2, CURLOPT_SSL_VERIFYHOST,1);
curl_setopt($ch2, CURLOPT_USERAGENT, "");
curl_setopt($ch2, CURLOPT_TIMEOUT,30);
curl_setopt($ch2, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch2, CURLOPT_SSL_VERIFYPEER, FALSE);
$curl_error=curl_error($ch2);
$curl_info = curl_getinfo($ch2);
$response=curl_exec($ch2);
curl_close($ch2);
if wait for an xml response so :
if(($curl_error=="")and($curl_info['http_code']=="200")and(strpos($response,"<?xml version=\"1.0\"?>")!==FALSE))
{
echo "ok;
}
bye