Use CURLOPT_CONNECTTIMEOUT_MS instead of CURLOPT_CONNECTTIMEOUT, and CURLOPT_TIMEOUT_MS instead of CURLOPT_TIMEOUT