curl-and-php
Warning: Failed to save cookies in cookie file
Date: Thu, 22 Jan 2009 11:23:35 -0500
With the following code in a php file containing a while loop, at the
end of each loop, the subject above is being displayed in the verbose
output.
For the first execute:
curl_setopt($ch1, CURLOPT_COOKIESESSION, FALSE);
curl_setopt($ch1, CURLOPT_COOKIEJAR, $cookie_file);
curl_setopt($ch1, CURLOPT_COOKIEFILE, $cookie_file);
For the next and subsequent executes:
curl_setopt($ch1, CURLOPT_COOKIESESSION, TRUE);
At the end of the last execute:
$page7_hdr_array = curl_exec($ch1);
curl_close ( $ch1 );
fwrite ( $fp, "n**** Closing cURL session for user : $user *****n
");
And this at the end of each while loop in the verbose output:
Connection #0 to host www.aapilots.com left intact
* Closing connection #0
* WARNING: failed to save cookies in /cookies/sched_bot_cookies.txt
Has anyone seen this or have any ideas of what causes it?
David
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-01-22