FALSE, CURLOPT_FOLLOWLOCATION => FALSE, CURLOPT_HEADER => FALSE, CURLOPT_NOBODY => TRUE, CURLOPT_RETURNTRANSFER => FALSE, CURLOPT_VERBOSE => FALSE, CURLOPT_TIMEOUT => 15, CURLOPT_USERAGENT => 'Image Checker 0.1', // It may use (spoof) the user's browser by using $_SERVER['HTTP_USER_AGENT'], it would be more credible against servers with paranoid settings which do user agent checking CURLOPT_VERBOSE => FALSE, ); curl_setopt_array($ch, $options); curl_exec($ch); var_dump(curl_getinfo($ch)); ?>