Using PHP CURL for parsing sites with heavy load?
If you're just after the http code, you need to use curl_getinfo using CURLINFO_HTTP_CODE
, an example being;
$handle = curl_init($url);curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);$response = curl_exec($handle);$httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE);