I am trying to test my timeout conditions using curl and force the website to timeout. Here is my curl settings:
curl_setopt_array($curl, array(
CURLOPT_URL => "https://app.sample.com/api/abc/changelogs?last=3",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CONNECTTIMEOUT => 0,
CURLOPT_TIMEOUT => 0,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache"
),
));
Eventhough I changed the CONNECTTIMEOUT and TIMEOUT into 0 / 0.000001 it still wont time out. Any help would be nice.