--- Brad Allen <[EMAIL PROTECTED]> wrote:
> I'm setting up a new web server to move some existing sites, that
> include perl scripts.
>
> I definitely have perl running as a CGI (vs. mod_perl) and the script
> I'm working with is a slightly modified version of FormMail from Matt's
> Script Archive available at;
>
> http://www.worldwidemart.com/scripts/formmail.shtml
>
> My problem is the CGI is not getting the POST arguments from httpd. GET
> works, and I've even copied it to a couple other machines to test it and
> it works there.
>
> Anybody have any ideas?
Here are a couple of ideas:
1. Post your code.
It's very difficult to debug code we can't see.
2. Never use anything from Matt's Script Archive. His code is terrible.
a. it's poorly written
b. doesn't use strict
c. doesn't use warnings
d. doesn't use taint checking
e. uses a broken form-parsing routine that's riddled with bugs
(despite being repeatedly having the bugs pointed out to him).
f. often has serious security holes.
Often (but not always) if a CGI script fails with POST but not with GET, something is
reading the
contents of STDIN before the form-parsing routine can get to it. Also, it's very
possible that
the form-parsing routine is designed as "POST only" (though it doesn't sound like
either of these
are the case here). Please post your code so we can see what's going on.
Cheers,
Curtis "Ovid" Poe
=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]