curl-and-php
Cookie - handling changes?
Date: Sat, 12 Jul 2003 16:23:34 +0200
Hi there!
Here a (may be noobie) question:
Yesterday i upgraded to curl-7.10.5_1 - and from thia point all the cookie-
related functions dont work correctly - what means: neither cookies are stored
in the cookiefile neither a cookie is sent. Where there any changes since the
last curl version?
Any hints apprecitated!
Greetz, Valki
Example:
$url ="http://fun.orf.at/oe3/?tmp=$idx";
$arr_string = "&rate=$vote";
$user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)";
$ch = curl_init();
curl_setopt ($ch,
CURLOPT_COOKIEFILE, "/home/www/www1/htdocs/oe3/cookie.txt");
//curl_setopt ($ch,
CURLOPT_COOKIEJAR, "/home/www/www1/htdocs/oe3/cookie.txt");
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 2);
curl_setopt ($ch, CURLOPT_MAXREDIRS, 10);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $arr_string);
$result = curl_exec ($ch);
curl_close ($ch);
unset($ch);
--------------------
my Valki
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
Received on 2003-07-12