Notice: Use of undefined constant CURL_IPRESOLVE - assumed 'CURL_IPRESOLVE'
To use specifically IPv4, use
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
Official doc here: http://php.net/manual/en/function.curl-setopt.php
To use specifically IPv4, use
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
Official doc here: http://php.net/manual/en/function.curl-setopt.php