limit=1024;//Limite à 1Ko if ($timeout) $curl->timeout = $timeout; $response = $curl->get($link); if ($response) $msg = $response->headers['Status-Code']; else $msg = "can't resolve $link"; }else $msg = "empty link"; print $msg; ?>