HELP!! ( testlink and verifing links )
Bruno da Rocha (bruno@bragasoft.com)
Mon, 13 Oct 1997 15:16:33 -0300
PLEASE. I have some problems. I made this script to verify the
existence of a url. Look it, please:
----------------------------------------------------------------------------
------------------------------------
!/usr/bin/perl
#
require "www.pl";
print "Content-type: text/html\n\n";
$url = "http://www.perl.com/";
$resposta = &www'request('HEAD', $url);
if ($resposta == 200) {
print "URL exists\n";
} else {
print "URL don't exists\n";
}
----------------------------------------------------------------------------
------------------------------------
This script works okay when I use it in the prompt of the UNIX. But when I
execute it by an
internet browser, the error message ar shown:
----------------------------------------------------------------------------
------------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, and inform them of the time the
error occurred, and anything you might have done that may have caused the
error.
----------------------------------------------------------------------------
------------------------------------
And the title-bar of the browser says: 500 Internal Server Error.
I changed the permission code of the directory to drwxrwxrwx, bu the same
thing happened.
I tested TESTLINK ( a script to verify links writed by Roy Fielding using
the wwwlib )
in the prompt ( ok ) and by browser ( doing the modifications ), and I
noticed that the
same error occured.
Certainly, somebody of this list have ever made some script similar to it.
I want to know if
you had this problem once, and how repair it.
Sincerly Thanks to everbody.
Bruno Ormond