Doc #69633 [Fbk->NoF]: curl_setopt(CURLOPT_SSL_VERIFYPEER, false) requires other parameters

From: Date: Sun, 01 May 2016 04:22:26 +0000
Subject: Doc #69633 [Fbk->NoF]: curl_setopt(CURLOPT_SSL_VERIFYPEER, false) requires other parameters
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13439@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69633&edit=1 ID: 69633 Updated by: php-bugs@lists.php.net Reported by: kedar at rfspot dot com Summary: curl_setopt(CURLOPT_SSL_VERIFYPEER, false) requires other parameters -Status: Feedback +Status: No Feedback Type: Documentation Problem Package: cURL related Operating System: Ubuntu 14.04 PHP Version: 5.5.24 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2016-04-24 04:07:49] pierrick@php.net I can't reproduce the problem. Can you still produce it ? If yes what version of curl are you using ? php -r 'print_r(curl_version()['version']);' ------------------------------------------------------------------------ [2015-05-13 22:31:22] kedar at rfspot dot com 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 this bug report at https://bugs.php.net/bug.php?id=69633&edit=1

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