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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 07:01:27 2024 UTC