Skip to content
Advertisement

Curl request is failing on the SSL?

I have this code

    if(ereg("^(https)",$url))
        curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);
    // execute, and log the result to curl_put.log
    $result = curl_exec($curl);


    $error = curl_error($curl);

The error specified is

SSL read: error:00000000:lib(0):func(0):reason(0), errno 104

Any ideas on the cause

Advertisement

Answer

With SSL, make sure that you have openssl extension turned on from php.ini.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement