limit = 1024; // Limite à 1Ko if (isset($timeout) && is_numeric($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; ?>