Curl returning error: Curl failed: SSL connect error

0

My request is as follows:

$ch = curl_init();

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); //Wait indefinitately 

curl_setopt($ch, CURLOPT_SSLVERSION, 3);

curl_setopt($ch, CURLOPT_URL,$url);

$result=curl_exec($ch);

if (curl_exec($ch) === FALSE) {
    die("Curl failed: " . curl_error($ch));
}

curl_close($ch);

But I do not use ssl on my site. In the page in question I do not need. But it still returns the error.

PS: It was working normally, but today it presented this error.

    
asked by anonymous 29.06.2016 / 15:10

0 answers