Bug #66643 [NEW]: CURLOPT_COOKIEFILE &CURLOPT_COOKIEJAR not work

From: Date: Tue, 04 Feb 2014 18:27:15 +0000
Subject: Bug #66643 [NEW]: CURLOPT_COOKIEFILE &CURLOPT_COOKIEJAR not work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184157@lists.php.net to get a copy of this message
From: foxer2010 at hotmail dot com Operating system: windows 8.1 PHP version: 5.5.8 Package: cURL related Bug Type: Bug Bug description:CURLOPT_COOKIEFILE &CURLOPT_COOKIEJAR not work Description: ------------ PHP: 5.5.6 CURLOPT_COOKIEFILE &CURLOPT_COOKIEJAR not work on windows 8.1 ×64 build 9200 i use xampp 1.8.3 how i can fix it ??? Test script: --------------- $curl = curl_init(); curl_setopt($curl, CURLOPT_HEADER, TRUE); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, array("User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:18.0) Gecko/20100101 Firefox/18.0", "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language: ar,en-us;q=0.7,en;q=0.3")); curl_setopt($curl, CURLOPT_COOKIEFILE, "cookiefile"); curl_setopt($curl, CURLOPT_COOKIEJAR, "cookiefile"); # SAME cookiefile curl_setopt($curl, CURLOPT_URL, "http://www.php.net"); $xxx = curl_exec($curl); curl_close ($curl); echo $xxx; Expected result: ---------------- work perfect without make cookie file to use -- Edit bug report at https://bugs.php.net/bug.php?id=66643&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66643&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66643&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66643&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66643&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66643&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66643&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66643&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66643&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66643&r=support Expected behavior: https://bugs.php.net/fix.php?id=66643&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66643&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66643&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66643&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66643&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66643&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66643&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66643&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66643&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66643&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66643&r=mysqlcfg

« previous php.bugs (#184157) next »