Re: [cgi-prototype-users] header issue?
On 20 Dec 2005 09:04:34 -0800, Randal L. Schwartz wrote: > 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: [EMAIL PROTECTED] 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: <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] 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 + X-Iris-Envelope-Recipient: <[EMAIL PROTECTED]> X-Iris-Envelope-Sender: <[EMAIL PROTECTED]> X-Iris-Host: 1109654241/lists-outbound.sourceforge.net X-Forward: from <[EMAIL PROTECTED]> to <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> (rule 769739); 20 Dec 2005 08:51:45 + Return-Path: [EMAIL PROTECTED] 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-users@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-users@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 <[EMAIL PROTECTED]> Received-SPF: pass (lists-outbound.sourceforge.net: domain of [EMAIL PROTECTED] designates 66.35.250.225 as permitted sender) receiver=lists-outbound.sourceforge.net; client_ip=66.35.250.225; [EMAIL PROTECTED]; Cc: cgi-prototype-users@lists.sourceforge.net Subject: Re: [cgi-prototype-users] header issue? References: <[EMAIL PROTECTED]> x-mayan-date: Long count = 12.19.12.16.2; tzolkin = 7 Ik; haab = 0 Kankin From: merlyn@stonehenge.com (Randal L. Schwartz) In-Reply-To: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> 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=21 Sender: [EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] X-BeenThere: cgi-prototype-users@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:[EMAIL PROTECTED]> List-Id: CGI::Prototype users mailing list List-Post: <mailto:cgi-prototype-users@lists.sourceforge.net> List-Help: <mailto:[EMAIL PROTECTED]> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users>, <mailto:[EMAIL PROTECTED]> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=cgi-prototype-users> Date: 20 Dec 2005 00:50:47 -0800 >>>>> "benh" == benh <[EMAIL PROTECTED]> writes: 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 do
Re: [cgi-prototype-users] header issue?
> "benh" == benh <[EMAIL PROTECTED]> writes: 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 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 ___ cgi-prototype-users mailing list cgi-prototype-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users
re: [cgi-prototype-users] header issue?
[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 > the error log is : > > Premature end of script headers: /home/benh/public_html/beta/test.cgi > > hope this helps. > > benh~ > > > On 20 Dec 2005 00:50:47 -0800, Randal L. Schwartz > wrote: > > > "benh" == benh <[EMAIL PROTECTED]> writes: > > > > 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 > > 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_idv37&alloc_id865&op=click ___ cgi-prototype-users mailing list cgi-prototype-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users
Re: [cgi-prototype-users] header issue?
> "benh" == benh <[EMAIL PROTECTED]> writes: 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 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 ___ cgi-prototype-users mailing list cgi-prototype-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users
[cgi-prototype-users] header issue?
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~ --- 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_idv37&alloc_id865&op=click ___ cgi-prototype-users mailing list cgi-prototype-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users