httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Jeff Lacki)
Subject Re: [users@httpd] POST turns into GET problem
Date Mon, 29 Sep 2003 05:28:45 GMT
Yes, you get the same error.  The perl file is as follows
(and works just fine on the local apache server):

#!/usr/bin/perl -w
# Switches which direction the questions should take based on 2 radio
# buttons for input
# Displays: MilitaryConsentForm.htm

use strict;

my $BASE;
use lib "$BASE/perl_inc";

require "";
require "";
require "";
require "";
require "";

# setup variables we will use here
my $HTML_DIR="/var/www/ptsdsurvey";
my $MILITARY_FILE="$HTML_DIR/MilitaryConsentForm.htm";
my $CIVILIAN_FILE="$HTML_DIR/CivilianConsentForm.htm";

# set the MIME header
print "Content-type: text/html\r\n\r\n";

else {
    my $meth = $ENV{'REQUEST_METHOD'};
    print STDERR "ERROR: Method Error ($meth)\n";
    errhtml("Method Error ($meth)");
    exit 1;

thats the beginning of it.  Ive also tried saying:
if ($ENV{'REQUEST_METHOD'} =~ /POST/i) {

with the same results...and the err log:

[Sun Sep 28 21:57:22 2003] [error] [client] ERROR: Method Error, expected POST,
got (GET), referer:


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message