Doc #60413 [NEW]: curl_setopt cookiefile ""

From: Date: Wed, 30 Nov 2011 03:22:18 +0000
Subject: Doc #60413 [NEW]: curl_setopt cookiefile ""
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7486@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:curl_setopt cookiefile "" 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 bug report at https://bugs.php.net/bug.php?id=60413&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60413&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60413&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60413&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60413&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60413&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60413&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60413&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60413&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60413&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60413&r=support Expected behavior: https://bugs.php.net/fix.php?id=60413&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60413&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60413&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60413&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60413&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60413&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60413&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60413&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60413&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60413&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60413&r=mysqlcfg

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