From owner-freebsd-questions@FreeBSD.ORG Tue Sep 30 05:01:32 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10D7C16A4B3 for ; Tue, 30 Sep 2003 05:01:32 -0700 (PDT) Received: from remt25.cluster1.charter.net (remt25.cluster1.charter.net [209.225.8.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1C8B43F75 for ; Tue, 30 Sep 2003 05:01:30 -0700 (PDT) (envelope-from chowse@charter.net) Received: from [66.168.145.25] (HELO moe) by remt25.cluster1.charter.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 8501276 for freebsd-questions@freebsd.org; Tue, 30 Sep 2003 08:01:29 -0400 From: "Charles Howse" To: Date: Tue, 30 Sep 2003 07:01:21 -0500 Message-ID: <005301c3874a$93fc9700$04fea8c0@moe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: Cgi help - malformed header from script. Bad header X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2003 12:01:32 -0000 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=3DOct 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/