Doc #69633 [NEW]: curl_setopt(CURLOPT_SSL_VERIFYPEER, false) requires other parameters

From: Date: Wed, 13 May 2015 22:31:23 +0000
Subject: Doc #69633 [NEW]: curl_setopt(CURLOPT_SSL_VERIFYPEER, false) requires other parameters
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12326@lists.php.net to get a copy of this message
From: kedar at rfspot dot com Operating system: Ubuntu 14.04 PHP version: 5.5.24 Package: cURL related Bug Type: Documentation Problem Bug description:curl_setopt(CURLOPT_SSL_VERIFYPEER, false) requires other parameters Description: ------------ --- From manual page: http://www.php.net/function.curl-setopt --- When CURLOPT_SSL_VERIFYPEER is set to false, CURLOPT_SSL_VERIFYHOST must be set explicity (true or false) in order to receive a result. Otherwise, the curl function will fail silently and return no result. Test script: --------------- $ch = curl_init("https://test.com/api/test"); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // required to be set to true or false in order to receive a result with CURLOPT_SSL_VERIFYPEER=false $result = curl_exec($ch); curl_close($ch); -- Edit bug report at https://bugs.php.net/bug.php?id=69633&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69633&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69633&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69633&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69633&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69633&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69633&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69633&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69633&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69633&r=support Expected behavior: https://bugs.php.net/fix.php?id=69633&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69633&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69633&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69633&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69633&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69633&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69633&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69633&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69633&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69633&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69633&r=mysqlcfg

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