Bug #66643 [Opn]: CURLOPT_COOKIEFILE &CURLOPT_COOKIEJAR not work
Edit report at https://bugs.php.net/bug.php?id=66643&edit=1
ID: 66643
User updated by: foxer2010 at hotmail dot com
Reported by: foxer2010 at hotmail dot com
Summary: CURLOPT_COOKIEFILE &CURLOPT_COOKIEJAR not work
Status: Open
Type: Bug
Package: cURL related
Operating System: windows 8.1
PHP Version: 5.5.8
Block user comment: N
Private report: N
New Comment:
problem in chmod error in permission and i know 0755 chmod not work on windows
thanks at all
Previous Comments:
------------------------------------------------------------------------
[2014-02-04 18:27:14] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66643&edit=1
Thread (3 messages)