I'm setting the curl cookiejar option with the following:
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
this puts the file in c:\
I try to use an absolute path (c:\server\docs) and the script breaks. Even so, the cookie does get written to that path. Odd.
Is there another way I'm supposed to define the path to my webserver?
Use
define("SITE_PATH",'c:\server\docs');
curl_setopt($ch, CURLOPT_COOKIEFILE, SITE_PATH . "/cookie.txt");
I hope it helps
Thanks :)
cookies.txt
just like the way you have done for __EVENTVALIDATION
see http://stackoverflow.com/questions/895786/how-to-get-the-cookies-from-a-php-curl-into-a-variable on getting cookie value - Baba 2012-04-04 19:18
getcwd
Baba 2012-04-04 19:36
echo getcwd() . "\n";
Baba 2012-04-04 19:42
I guess you need to change it to "c:\\server\\docs\\
"