You need to add a second newline after the headers, as in
print "Content-type: text/html\n\n";
You may want to keep Troubleshooting Perl CGI scripts in mind next time you run into a problem.
Makeshifts last the longest.
In reply to Re: Bad Header
by Aristotle
in thread CGI script "malformed header" error
by Midnite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |