How about LWP::UserAgent ?

Besides, did you make the <head></head> in your index.html ?
( I don't know if this is nessary or not, but I always get the right
result with <head></head> and the file.html as a full path)

And Umm.... Is the "Page cannot be found" Comes up by your
server ( Standard 404 ), or Explorer Error, or your script ?
Normally, if a scripts take a long time to run, but not handling
a big file, it's likely be you script cannot be run properly...
So, do you confirm #!/perl/bin/perl -W is the right place for your
Perl compiler's loc declaration ? For my Apache, I have to type
#!C:/Perl/bin/Perl.exe -wT

To test is, you may go to dosprompt and type
perl c:\yourscriptpath\yourscrip.pl



----- Original Message -----
From: "Octavian Rasnita" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 26, 2002 8:36 PM
Subject: What is wrong? (LWP::Simple)


> 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]
>
>


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

Reply via email to