From:             nytral at spamcop dot net
Operating system: win32 and linux
PHP version:      5CVS-2004-01-09 (dev)
PHP Bug Type:     cURL related
Bug description:  cookiejar broken

Description:
------------
Since php_curl is linked against libcurl 7.10.5+, cookies are not being
stored for an https server I'm talking to. If it is because of
Cache-Control: no-cache="set-cookie,set-cookie2"
sent by the server, is there a workaround to force the cookiejar to
populate anyway?


Reproduce code:
---------------
        $ch = curl_init();

        curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);

        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);

        curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);

        curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/cookies");

        curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/cookies");

        curl_setopt($ch, CURLOPT_SSLVERSION, 3);

        curl_setopt($ch, CURLOPT_URL,$url);

        $buf=curl_exec($ch);

Expected result:
----------------
To get something in /tmp/cookies when the server returns cookies, as it's
the case with PHP < 4.3

Actual result:
--------------
No /tmp/cookie file gets created.

-- 
Edit bug report at http://bugs.php.net/?id=26853&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26853&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26853&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26853&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26853&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26853&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26853&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26853&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26853&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26853&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26853&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26853&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26853&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26853&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26853&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26853&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26853&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26853&r=float

Reply via email to