Cgi help - malformed header from script. Bad header
From: Charles Howse (chowse_at_charter.net)
Date: 09/30/03
- Previous message: Raphaël Marmier: "Re: Qmailadmin port"
- Next in thread: Rob Ellis: "Re: Cgi help - malformed header from script. Bad header"
- Reply: Rob Ellis: "Re: Cgi help - malformed header from script. Bad header"
- Reply: Andreas Kohn: "Re: Cgi help - malformed header from script. Bad header"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <freebsd-questions@freebsd.org> Date: Tue, 30 Sep 2003 07:01:21 -0500
Hi,
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
history')
Cal contains the following lines:
#!/bin/sh
echo Content-type: text/plain
/usr/bin/calendar
------
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,
192,:cal
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?
Thanks,
Charles
Got a computer with idle CPU time?
Join SETI@home and help make history!
http://setiathome.ssl.berkeley.edu/
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Raphaël Marmier: "Re: Qmailadmin port"
- Next in thread: Rob Ellis: "Re: Cgi help - malformed header from script. Bad header"
- Reply: Rob Ellis: "Re: Cgi help - malformed header from script. Bad header"
- Reply: Andreas Kohn: "Re: Cgi help - malformed header from script. Bad header"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]