Hi there,
I've used curl with PHP4 without any notable problem.
Now I have to do the same things with curl and PHP5 and
it won't work.
<?php
$ch_1 = curl_init();
curl_setopt($ch_1, CURLOPT_URL, $url_1);
curl_setopt($ch_1, CURLOPT_VERBOSE, 1);
curl_setopt($ch_1, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch_1, CURLOPT_HEADER, 1);
curl_setopt($ch_1, CURLOPT_WRITEHEADER, $hfh);
curl_setopt($ch_1, CURLOPT_STDERR, $efh);
curl_setopt($ch_1, CURLOPT_RETURNTRANSFER, 1);
// ---- COOKIES ------------------------------------
curl_setopt($ch_1, CURLOPT_COOKIEFILE, $cookie_file);
curl_setopt($ch_1, CURLOPT_COOKIEJAR, $cookie_file);
// ---- POST-VARS ----------------------------------
curl_setopt($ch_1, CURLOPT_POST, 1);
curl_setopt($ch_1, CURLOPT_POSTFIELDS, $postdata_1);
curl_exec($ch_1);
curl_close($ch_1);
?>
Is there anybody who knows where the problem could be and
can give me a link to fix it???
th