Oh glorious Monks,
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.
Joseph A. Ruffino
Automated Systems Assistant
Gail Borden Public Library District
270 N. Grove Ave
Elgin, Il, 60120
847-742-2411 x5986
20040811 Janitored by Corion: Put code tags around error message and code, retitled from "Bad Header"
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.