Hi all,

The following script works under Apache 1.33 and Apache 2.0.36, but it
doesn't work under Apache 2.0.39.
Can you tell me why?

It is a simple script which tests if the main page from localhost exists or
not.
The script tells me that the Page can't be found. ... after a long time of
"Opening page..."
It seems that the new Apache is bad. Is it true?

#!/perl/bin/perl -W

use LWP::Simple;

print "Content-type: text/html\n\n";

my $path = "http://localhost/";;

if (head($path)) {
print "The page is there";
}
else {
print "The page cannot be found";
}


Teddy,
My dear email address is [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to