php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58289 cookiestore request option not working.
Submitted: 2008-07-25 22:48 UTC Modified: 2008-08-04 03:58 UTC
From: troy at yortfolio dot com Assigned: mike (profile)
Status: Not a bug Package: pecl_http (PECL)
PHP Version: 5_2 CVS-2008-07-25 (dev) OS: Win XP x64
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: troy at yortfolio dot com
New email:
PHP Version: OS:

 

 [2008-07-25 22:48 UTC] troy at yortfolio dot com
Description:
------------
When setting a 'cookiestore' location, no file is created in the specified location, BUT the cookies are stored and read.

I have tried searching my machine for any cookies.txt files and cant find anything outside of some older mozilla related products.


Reproduce code:
---------------
$objHttp = new HttpRequest('http://www.google.com', HTTP_METH_GET, array('cookiestore' => 'c:/temp/cookies.txt'));
$objHttp->send();

(have also tried 'c:\temp\cookies.txt' just in case)

Expected result:
----------------
Cookie file to be created and cookie contents to be stored in specified location.

Actual result:
--------------
No file is created in the specified location, BUT cookies are stored somewhere and read for subsequent requests.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-27 08:15 UTC] mike@php.net
Thank you for taking the time to write to us, but this is not
a bug.

Call flushCookies(); else the cookioe file is only created when the curl handle is destructed, which happens only on server shutdown if persistent handles are enabled (by default).
 [2008-07-28 03:29 UTC] troy at yortfolio dot com
Ah, not in documentation as yet.

This only seems to work with libcurl 7.17.1, is there anything which works with 7.16 which php5.2 and currently 5.3 ship compiled with in windows land?
 [2008-08-04 02:37 UTC] mike@php.net
Try to set http.persistent.handles.limit to 0 in your php.ini
 [2008-08-04 03:58 UTC] troy at yortfolio dot com
Perfect, have just tried, and it works.

Thanks for the help.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 08 15:01:31 2024 UTC