curlConnectTimeoutInMilliseconds); curl_setopt($ch, CURLOPT_TIMEOUT, $this->curlDownloadTimeoutInSeconds); $response = curl_exec($ch); curl_close($ch); if ($response === false) { throw new RequestException(curl_error($ch)); } return $response; } }