<?php
require_once "HTTP/Request.php";
$urls = array(
"href=21d.www.qqqq.ff " ,
"hhjarticle230155.html " ,
"article.php3 " ,
"href=article.php3 " ,
"article.php3?id_rubrique=37&retour=nav " ,
"rubrique.php3 " ,
"rubrique.php3?id_rubrique=37&retour=nav " ,
"http://adiack.inserm_srest/home.php?cd=yes&sessionid=d12a5847a33f21a8732f0ad7dd712d5c&kp3=1f1321acab2f1eb50f0f86de8060ab35&domain=default&PHPGW_PHPSESSID=&click_history=e9dc35b7df20647749d2b6bf1fc6e21a " ,
"ksjkswww.dzeze.de " ,
"sshttps://www.dhdh.fg " ,
"htp://www.dhdh.fg " ,
"http://qkqkq.gh " ,
"https://admi.htm " ,
"htps://kdls.qq " ,
"http://www.yahoo.fr "
);
$req =& new HTTP_Request("" );
foreach ($urls as $url) {
$req->setURL($url);
$req->sendRequest();
$code = $req->getResponseCode();
switch ($code) {
case 404:
echo "Document not found\n";
break;
case 200:
echo "Everything's ok\n";
break;
/* ... */
}
}
?>
normalement le yahoo.fr devrait etre à ok mais ce n'est pas le cas merci de me dire ce qui cloche !!!