[101511] in RedHat Linux List
"POST TO /query.pl not supported"
daemon@ATHENA.MIT.EDU (aromes@microtec.net)
Fri Nov 27 00:35:44 1998
From: aromes@microtec.net
Date: Fri, 27 Nov 1998 00:50:06 -0800
To: redhat-list@redhat.com
Cc: redhat-list-request@redhat.com, linux-admin@vger.rutgers.edu
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Hello,
I get error: "POST TO /query.pl not supported" when I launch
"lynx://Localhost". and if I do "lynx://Localhost/cgi-bin/query.pl"
I just get my query.pl file in text!
Here's index.html file followed by my cgi script :
><HTML><HEAD><TITLE>My Apache web server</TITLE></HEAD>
><BODY>
><P>
><FORM METHOD="post" ACTION="http://Localhost/cgi-bin/query.pl">
>Enter Username
><INPUT TYPE="SUBMIT" NAME="USERNAME" SIZE="25" MAXLENGTH="50" VALUE="">
></FORM></BODY></HTML>..
And here's my cgi-script
#!/usr/bin/perl
require "cgi-lib.pl";
print &PrintHeader;
if (&ReadParse(*input)) {
print "Thank you, $input{ USERNAME }, for submitting your
comments.<br>\n";
} else {
print "An error occured parsing the form input.<br>\n";
}
BTW, cgi script is fine cause " perl -c query.pl" tells me Syntax OK!
I also think that I do not have the cgi-perl lib, cause I have no CGI
directory under /usr/lib/perl
I also do not have any cgi.pm file. Is that possible that my problem has
got to do with
the cgi-perl lib??
Thanks
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.