[101162] in RedHat Linux List

home help back first fref pref prev next nref lref last post

ERROR= POST to /index.html not supported

daemon@ATHENA.MIT.EDU (aromes@microtec.net)
Tue Nov 24 23:21:05 1998

From: aromes@microtec.net
Date: Tue, 24 Nov 1998 23:34:32 -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,

My simple index.html file as follow:
><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 (Thanks to one of you, claude)
#!/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";
}

So When I execute "lynx http://Localhost", I get "FORM SUBMIT BUTTON, PRESS
ENTER FOR SUBMIT". When I press ENTER I receive Error: "
 POST to /index.html not supported". I ve double checked all the apache
paths and config files, also the cgi-bin ones..I tried with GET instead of
POST..still same error..
What wrong and How to go around that???

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.


home help back first fref pref prev next nref lref last post