Curl Returning Error: Curl Failed: SSL connect error

Asked

Viewed 427 times

0

My requisicao is the following:

$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);

However I do not use ssl on my site. On the page I do not need. But it still returns the error.

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

  • look here: http://answall.com/questions/123866/como-passo-par%C3%A2metros-pelo-Curl

  • Thank you, I’ll look.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.