Hi,
Für die Seiten foo.com example.com etc.
Schoen, dass du example.com fuer Beispiele verwendest - aber foo.com ist ebenfalls eine real existierende Domain.
Das Perl-Programm liest mit
$req = HTTP::Request->new('GET' => $url1);
$rc = $ua->request($req);
$seite = $rc->content();
if ($rc->is_success())
.....
und sollte also, wenn die Datei nicht vorhanden ist, einen entsprechenden returncode erhalten.
Dann frage an der Stelle ab, ob der Request mit einem Statuscode 404 Not Found beantwortet wurde.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“