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

From: Date: Fri, 07 Feb 2014 17:20:14 +0000
Subject: Bug #66643 [Opn]: CURLOPT_COOKIEFILE &CURLOPT_COOKIEJAR not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184196@lists.php.net to get a copy of this message
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)

« previous php.bugs (#184196) next »