From: benh <ben...@gm...> - 2005-12-20 08:39:57
|
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=3DISO-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=3DISO-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~ |
From: <me...@st...> - 2005-12-20 08:51:05
|
>>>>> "benh" == benh <ben...@gm...> 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 <me...@st...> <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! |
From: benh <ben...@gm...> - 2005-12-20 08:57:58
|
[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 <me...@st...>= wrote: > > >>>>> "benh" =3D=3D benh <ben...@gm...> 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-scrip= t-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 > > <me...@st...> <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 tra= ining! > > > |
From: <me...@st...> - 2005-12-20 17:04:42
|
>>>>> "benh" == benh <ben...@gm...> 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 <me...@st...> <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! |
From: Ryan T. <li...@ry...> - 2005-12-21 21:09:39
|
On 20 Dec 2005 09:04:34 -0800, Randal L. Schwartz <me...@st...> w= rote: > 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: rya...@gm... 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...@li...> 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...@li... 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 +00= 00 X-Iris-Envelope-Recipient: <li...@ry...> X-Iris-Envelope-Sender: <cgi...@li...> X-Iris-Host: 1109654241/lists-outbound.sourceforge.net X-Forward: from <li...@ry...> to <rya...@gm...> Received: from lists-outbound.sourceforge.net (EHLO lists-outbound.sourceforge.net) (66.35.250.225) =09by iris2.directnic.com (iris/0.180) with ESMTP =09for <li...@ry...> (rule 769739); 20 Dec 2005 08:51:45 +0000 Return-Path: cgi...@li... Received: from sc8-sf-list1-b.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) =09by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP =09id 024BA1270B; Tue, 20 Dec 2005 00:52:03 -0800 (PST) Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=3Dmail.sourceforge.net) =09by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) =09id 1EodD7-00038P-1s =09for cgi...@li...; Tue, 20 Dec 2005 00:51:05= -0800 Received: from blue.stonehenge.com ([209.223.236.162] ident=3D_postfix) =09by mail.sourceforge.net with esmtp (Exim 4.44) =09id 1EodD6-00019P-0r =09for cgi...@li...; Tue, 20 Dec 2005 00:51:05= -0800 Received: from localhost (localhost [127.0.0.1]) =09by blue.stonehenge.com (Postfix) with ESMTP id 7771D8F6F5; =09Tue, 20 Dec 2005 00:50:48 -0800 (PST) Received: from blue.stonehenge.com ([127.0.0.1]) =09by localhost (blue.stonehenge.com [127.0.0.1]) (amavisd-new, port 10024) =09with LMTP id 16945-01-22; Tue, 20 Dec 2005 00:50:48 -0800 (PST) Received: by blue.stonehenge.com (Postfix, from userid 1001) =09id 00A6B8F700; Tue, 20 Dec 2005 00:50:47 -0800 (PST) To: benh <ben...@gm...> Received-SPF: pass (lists-outbound.sourceforge.net: domain of cgi...@li... designates 66.35.250.225 as permitted sender) receiver=3Dlists-outbound.sourceforge.net; client_ip=3D66.35.250.225; envelope-from=3Dc...@li...; Cc: cgi...@li... Subject: Re: [cgi-prototype-users] header issue? References: <85d...@ma...> x-mayan-date: Long count =3D 12.19.12.16.2; tzolkin =3D 7 Ik; haab =3D 0 Ka= nkin From: me...@st... (Randal L. Schwartz) In-Reply-To: <85d...@ma...> Message-ID: <86k...@bl...> Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=3Dus-ascii X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. =09See http://spamassassin.org/tag/ for more details. =09Report problems to http://sf.net/tracker/?func=3Dadd&group_id=3D1&atid= =3D200001 Sender: cgi...@li... Errors-To: cgi...@li... X-BeenThere: cgi...@li... X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users>, =09<mailto:cgi...@li...?subject=3Dunsu= bscribe> List-Id: CGI::Prototype users mailing list <cgi-prototype-users.lists.sourceforge.net> List-Post: <mailto:cgi...@li...> List-Help: <mailto:cgi...@li...?subjec= t=3Dhelp> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users>, =09<mailto:cgi...@li...?subject=3Dsubs= cribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=3Dcgi-pro= totype-users> Date: 20 Dec 2005 00:50:47 -0800 >>>>> "benh" =3D=3D benh <ben...@gm...> 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-he= aders) 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 <me...@st...> <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 trainin= g! ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log file= s 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=3D7637&alloc_id=3D16865&op=3Dclick _______________________________________________ cgi-prototype-users mailing list cgi...@li... https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users |
From: <me...@st...> - 2005-12-21 21:33:38
|
>>>>> "Ryan" == Ryan Tate <li...@ry...> writes: 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 <me...@st...> <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! |