Beginner Perl/CGI

Beginner Perl/CGI

Post by Mark Schwart » Wed, 05 Mar 1997 04:00:00

I am running Red Hat Linux 4.0, Apache 1.1.1., Perl 5.003., Netscape

I have written a simple HTML doc and a simple CGI script (in Perl).
Here is the problem:

In the calling html doc, if I use <FORM METHOD="GET" ....> the CGI
script that gets called by the html doc is displayed as 'raw' text --
and I do mean the ENTIRE CGI script, not just the html code that should
be returned.  Also, the values that the html doc passes to the CGI
script are correctly displayed in the title bar, so I know the values
that I am passing, via radio buttons and check boxes, are correct.

If I change "GET" to "POST", then nothing is returned!  The Perl scripts
all run without error from the command line.  I originally posted this
problem to a Perl group, but they seem to think that my server may be

I'm REAL new to this, so any help would be GREATLY appreciated!


Mark Schwartz

P.S.  I have documentation for the various .conf files for the NCSA
server, but I don't see anything that would explain why GET semi-works
but POST fails to work at all.


1. Perl CGI script gets CGI params as ARGV arguments under Apache2


recently we installed Apache2 for tests with our web scripts and
discovered that the webserver calls them with all given CGI parameters
as one string argument. This was discovered because one script trys to

contains any entry... and in fact, under Apache2 it does! :-(
We don't know if this is a change in behaviour on behalf of the
webserver or if this is simply a Apache2 missconfiguration.
Does anybody out there has an answer to the question how we can get
back to the old behaviour? Or is this completely impossible?

Thanks in advance, best regards,
J?rn Janoschek.

2. Backup-program with GUI

3. help needed with perl CGI, and <textarea>

4. Layered Screens

5. Perl CGI not working although shell script CGI's do

6. Problem with DNS on a PPP-dialup connection

7. perl installed, missing, How do i get

8. Help! Network Installation

9. /cgi-bin/phf /cgi-bin/test-cgi /cgi-bin/handler

10. Perl for beginner

11. DBM Help (PERL Beginner Question)

12. Need a Good PERL Beginners Site

13. DBM Help (Perl Beginner Question)