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

From: Date: Sun, 24 Apr 2016 04:07:50 +0000
Subject: Doc #69633 [Opn->Fbk]: curl_setopt(CURLOPT_SSL_VERIFYPEER, false) requires other parameters
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13420@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: pierrick@php.net Reported by: kedar at rfspot dot com Summary: curl_setopt(CURLOPT_SSL_VERIFYPEER, false) requires other parameters -Status: Open +Status: Feedback Type: Documentation Problem Package: cURL related Operating System: Ubuntu 14.04 PHP Version: 5.5.24 Block user comment: N Private report: N New Comment: 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']);' Previous Comments: ------------------------------------------------------------------------ [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 (#13420) next »