Cgi help - malformed header from script. Bad header
andreas.kohn at gmx.net
Tue Sep 30 05:23:34 PDT 2003
On Tue, 2003-09-30 at 14:01, Charles Howse wrote:
> FBSD 4.8-RELEASE-p10, Apache2.
> My first cgi-bin program.
> I have the following files in /usr/local/www/cgi-bin:
> Cal (-rwxr-xr-x)
> Calendar (-rw-r--r-- typical calendar file to display 'today in
> Cal contains the following lines:
> echo Content-type: text/plain
> If I cd to /usr/loca/www/cgi-bin, and do ./cal,
> I get the echo, plus the expected output.
> When I request, http://howse.no-ip.org/cgi-bin/cal
> I get an Internal Server Error.
> The error logfile says:
> Malformed header from script. Bad header=Oct 1 Jimmy Carter born,
> ScriptAlias is defined properly in httpd.conf, and I get the proper
> output from test-cgi.
> I've read the Apache2 documentation on CGI, and troubleshooting errors,
> no joy.
> How can I fix this?
Header and content of the HTTP response have to be separated by an empty
echo Content-type: text/plain
> Got a computer with idle CPU time?
> Join SETI at home and help make history!
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
Andreas Kohn <andreas.kohn at gmx.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030930/7f33a109/attachment.bin
More information about the freebsd-questions