Midnite has asked for the wisdom of the Perl Monks concerning the following question:
I seek wisdom on a script I am working on. I keep getting a 500 Internal Server Error, and it is a very strange error I get from the error_log:
[Tue Aug 10 13:59:26 2004] [error] [client 216.125.160.51] malformed header from script. Bad header=<BODY BGCOLOR="#FFFFFF"><font : /usr/local/httpd/virtuals/elghome/www.elginarea.org/cgi-bin/make2.pl
The code it is bombing on is:
print "Content-type: text/html\n"; #print "<TITLE>B.O.B. Question</TITLE>\n"; print "<BODY BGCOLOR=\"#FFFFFF\"><font face=\"Arial\" size=\"3\">\n";
If I didn't comment out the title, it would have bombed there. I have been working on this for days, and I have no resolution. It does what I want, but I need to print out a web confirmation page based on the data.
Your wisdom would be greatly appreciated. If you need anymore code, just ask.
20040811 Janitored by Corion: Put code tags around error message and code, retitled from "Bad Header"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bad Header
by Aristotle (Chancellor) on Aug 10, 2004 at 19:08 UTC | |
by Midnite (Acolyte) on Aug 10, 2004 at 19:13 UTC | |
|
Re: Bad Header
by dragonchild (Archbishop) on Aug 10, 2004 at 19:10 UTC |