PHP Curl slow with HTTPS SSL requests

Posted on March 2, 2020 at 12:25 pm

A possible solution is to force IPv4 resolving:

curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );

And also disable SSL verifications:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

If the error persists, Curl is not the problem.

Probably there is a network issue.

Receive updates via email

Other Posts

Updated Posts