Discussion:
[cgi-prototype-users] header issue?
benh
2005-12-20 08:39:54 UTC
Permalink
Hello all I'm new to the list, so... umm... hello?

Ok heres the issue that I'm having, I keep getting 'Premature end of
script headers:' errors when running any CGI::Prototype; app. Heres
what I've done.

started with test.cgi:
#!/usr/bin/perl
use base CGI::Prototype;
main->activate;

that throws the header error...
so I looked the error up on apache.org
(http://httpd.apache.org/docs/1.3/misc/FAQ-F.html#premature-script-headers)
Thinking that it's an apache issue.

thinking that I copied something incorrect I ran test.cgi in terminal
and got this output:
Content-Type: text/html; charset=ISO-8859-1

This page intentionally left blank.

humm... just as expected. So next step was to take that output and
just print it via perl:
#!/usr/bin/perl
print "Content-Type: text/html; charset=ISO-8859-1

This page intentionally left blank.";

And that works? So my question is where did I screw something up? Is
this an issue with something on my end (like permissions?) or is this
an apache setup issue?

Any pointers in the right direction would be very helpful.

benh~
Randal L. Schwartz
2005-12-20 08:50:47 UTC
Permalink
benh> started with test.cgi:
benh> #!/usr/bin/perl
benh> use base CGI::Prototype;
benh> main->activate;

benh> that throws the header error...
benh> so I looked the error up on apache.org
benh> (http://httpd.apache.org/docs/1.3/misc/FAQ-F.html#premature-script-headers)
benh> Thinking that it's an apache issue.

Whenever you get an error like that, you need to look at the
error log. What does the error log say?
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<***@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
benh
2005-12-20 08:57:54 UTC
Permalink
[oop! sorry Randal this will be a dupe for you, didn't CC the list ]
hay Randal thanks for the module though as stated before the error in
Premature end of script headers: /home/benh/public_html/beta/test.cgi
hope this helps.
benh~
Post by Randal L. Schwartz
benh> #!/usr/bin/perl
benh> use base CGI::Prototype;
benh> main->activate;
benh> that throws the header error...
benh> so I looked the error up on apache.org
benh> (http://httpd.apache.org/docs/1.3/misc/FAQ-F.html#premature-script-headers)
benh> Thinking that it's an apache issue.
Whenever you get an error like that, you need to look at the
error log. What does the error log say?
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Randal L. Schwartz
2005-12-20 17:04:34 UTC
Permalink
benh> [oop! sorry Randal this will be a dupe for you, didn't CC the list ]

I didn't cc the list because I'm coaching you through basic CGI debugging,
which has nothing to do with CGI::Prototype.

It's very NOT COOL for you to take private email and send it back to
the list.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<***@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Ryan Tate
2005-12-21 21:09:36 UTC
Permalink
Post by Randal L. Schwartz
I didn't cc the list because I'm coaching you through basic CGI debugging,
which has nothing to do with CGI::Prototype.
Actually, I got the message he was replying to on the list as such,
which you did appear to have Cc-ed. As such it does not appear he
forwarded a private email (unless I'm missing something big).

Orig message below, with headers.

Cheers
RT


X-Gmail-Received: 7ec42ee20b8d7817222ceb8509bef301e8f78e12
Delivered-To: ***@gmail.com
Received: by 10.37.18.37 with SMTP id v37cs1887nzi;
Tue, 20 Dec 2005 00:55:23 -0800 (PST)
Received: by 10.54.77.8 with SMTP id z8mr41867wra;
Tue, 20 Dec 2005 00:50:05 -0800 (PST)
Return-Path: <cgi-prototype-users-***@lists.sourceforge.net>
Received: from pop.directnic.com (pop.directnic.com [204.251.10.190])
by mx.gmail.com with SMTP id 45si7157487wri.2005.12.20.00.52.05;
Tue, 20 Dec 2005 00:52:06 -0800 (PST)
Received-SPF: fail (gmail.com: domain of
cgi-prototype-users-***@lists.sourceforge.net does not designate
204.251.10.190 as permitted sender)
Received: by pop.directnic.com (iris/0.180:relay); 20 Dec 2005 08:51:49 +0000
X-Iris-Envelope-Recipient: <***@ryantate.com>
X-Iris-Envelope-Sender: <cgi-prototype-users-***@lists.sourceforge.net>
X-Iris-Host: 1109654241/lists-outbound.sourceforge.net
X-Forward: from <***@ryantate.com> to <***@gmail.com>
Received: from lists-outbound.sourceforge.net (EHLO
lists-outbound.sourceforge.net) (66.35.250.225)
by iris2.directnic.com (iris/0.180) with ESMTP
for <***@ryantate.com> (rule 769739); 20 Dec 2005 08:51:45 +0000
Return-Path: cgi-prototype-users-***@lists.sourceforge.net
Received: from sc8-sf-list1-b.sourceforge.net
(sc8-sf-list1-b.sourceforge.net [10.3.1.7])
by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP
id 024BA1270B; Tue, 20 Dec 2005 00:52:03 -0800 (PST)
Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91]
helo=mail.sourceforge.net)
by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30)
id 1EodD7-00038P-1s
for cgi-prototype-***@lists.sourceforge.net; Tue, 20 Dec 2005 00:51:05 -0800
Received: from blue.stonehenge.com ([209.223.236.162] ident=_postfix)
by mail.sourceforge.net with esmtp (Exim 4.44)
id 1EodD6-00019P-0r
for cgi-prototype-***@lists.sourceforge.net; Tue, 20 Dec 2005 00:51:05 -0800
Received: from localhost (localhost [127.0.0.1])
by blue.stonehenge.com (Postfix) with ESMTP id 7771D8F6F5;
Tue, 20 Dec 2005 00:50:48 -0800 (PST)
Received: from blue.stonehenge.com ([127.0.0.1])
by localhost (blue.stonehenge.com [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id 16945-01-22; Tue, 20 Dec 2005 00:50:48 -0800 (PST)
Received: by blue.stonehenge.com (Postfix, from userid 1001)
id 00A6B8F700; Tue, 20 Dec 2005 00:50:47 -0800 (PST)
To: benh <***@gmail.com>
Received-SPF: pass (lists-outbound.sourceforge.net: domain of
cgi-prototype-users-***@lists.sourceforge.net designates
66.35.250.225 as permitted sender)
receiver=lists-outbound.sourceforge.net; client_ip=66.35.250.225;
envelope-from=cgi-prototype-users-***@lists.sourceforge.net;
Cc: cgi-prototype-***@lists.sourceforge.net
Subject: Re: [cgi-prototype-users] header issue?
References: <***@mail.gmail.com>
x-mayan-date: Long count = 12.19.12.16.2; tzolkin = 7 Ik; haab = 0 Kankin
From: ***@stonehenge.com (Randal L. Schwartz)
In-Reply-To: <***@mail.gmail.com>
Message-ID: <***@blue.stonehenge.com>
Lines: 20
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: 0.0 (/)
X-Spam-Report: Spam Filtering performed by sourceforge.net.
See http://spamassassin.org/tag/ for more details.
Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001
Sender: cgi-prototype-users-***@lists.sourceforge.net
Errors-To: cgi-prototype-users-***@lists.sourceforge.net
X-BeenThere: cgi-prototype-***@lists.sourceforge.net
X-Mailman-Version: 2.0.9-sf.net
Precedence: bulk
List-Unsubscribe:
<https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users>,
<mailto:cgi-prototype-users-***@lists.sourceforge.net?subject=unsubscribe>
List-Id: CGI::Prototype users mailing list
<cgi-prototype-users.lists.sourceforge.net>
List-Post: <mailto:cgi-prototype-***@lists.sourceforge.net>
List-Help: <mailto:cgi-prototype-users-***@lists.sourceforge.net?subject=help>
List-Subscribe:
<https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users>,
<mailto:cgi-prototype-users-***@lists.sourceforge.net?subject=subscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=cgi-prototype-users>
Date: 20 Dec 2005 00:50:47 -0800
benh> started with test.cgi:
benh> #!/usr/bin/perl
benh> use base CGI::Prototype;
benh> main->activate;

benh> that throws the header error...
benh> so I looked the error up on apache.org
benh> (http://httpd.apache.org/docs/1.3/misc/FAQ-F.html#premature-script-headers)
benh> Thinking that it's an apache issue.

Whenever you get an error like that, you need to look at the
error log. What does the error log say?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<***@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Randal L. Schwartz
2005-12-21 21:33:15 UTC
Permalink
Ryan> Actually, I got the message he was replying to on the list as such,
Ryan> which you did appear to have Cc-ed. As such it does not appear he
Ryan> forwarded a private email (unless I'm missing something big).

Sorry, I misoperated my mailreader. I had wanted it to be a private
message, but obviously, it's archived at sf.net, so my mistake,
I'm sorry.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<***@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Loading...