php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66643 CURLOPT_COOKIEFILE &CURLOPT_COOKIEJAR not work
Submitted: 2014-02-04 18:27 UTC Modified: 2014-02-07 17:21 UTC
From: foxer2010 at hotmail dot com Assigned:
Status: Closed Package: cURL related
PHP Version: 5.5.8 OS: windows 8.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: foxer2010 at hotmail dot com
New email:
PHP Version: OS:

 

 [2014-02-04 18:27 UTC] foxer2010 at hotmail dot com
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 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-02-07 17:20 UTC] foxer2010 at hotmail dot com
problem in chmod error in permission and i know 0755 chmod not work on windows

thanks at all
 [2014-02-07 17:21 UTC] foxer2010 at hotmail dot com
-Status: Open +Status: Closed
 [2014-02-07 17:21 UTC] foxer2010 at hotmail dot com
done
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 12:01:32 2025 UTC