Doc #60413 [Opn->Csd]: curl_setopt cookiefile ""

From: Date: Sat, 03 Dec 2011 04:03:42 +0000
Subject: Doc #60413 [Opn->Csd]: curl_setopt cookiefile ""
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7500@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60413&edit=1 ID: 60413 Updated by: frozenfire@php.net Reported by: phpbugs at joern dot heissler dot de Summary: curl_setopt cookiefile "" -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: frozenfire Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2011-12-03 04:02:12] frozenfire@php.net Automatic comment from SVN on behalf of frozenfire Revision: http://svn.php.net/viewvc/?view=revision&revision=320297 Log: Clarified curlopt_cookiefile behaviour, as per bug #60413. ------------------------------------------------------------------------ [2011-11-30 03:22:18] phpbugs at joern dot heissler dot de Description: ------------ --- From manual page: http://www.php.net/function.curl-setopt --- CURLOPT_COOKIEFILE accepts an empty string "" as parameter to load no cookies but enable cookie handling. This is documented e.g. here: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html > Given an empty or non-existing file or by passing the empty string (""), this option > will enable cookies for this curl handle, making it understand and parse received cookies and then > use matching cookies in future requests. Suggested patch to command description: The name of the file containing the cookie data. The cookie file can be in Netscape format, or just plain HTTP-style headers dumped into a file. If the name is an empty string, no cookies are loaded, but cookie handling is still enabled. Test script: --------------- Have 100 random php coders read the manpage and ask them to figure out how to enable cookie handling. Expected result: ---------------- I expect most to come up with "no idea" or "Uhh.. someone wrote I could use /dev/null" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60413&edit=1

« previous php.doc.bugs (#7500) next »