You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by YY Liu <ph...@yahoo.com.cn> on 2004/08/02 09:21:13 UTC

How to solve "Premature end of script headers?

Hi everyone!
I have installed apache openssl and mod_ssl. Tha
apache coule be started succesfuly and could run some
simple CGI. But when I invoke a CGI, which is for
check password for a portal, in a web it shows
"Internal Server Error" and the error_log says
"Premature end of script headers".
Is it the problem of my program or some configure
wrong? 
Thanks in advance!

_________________________________________________________
Do You Yahoo!?
美女明星应有尽有,"一搜"搜遍美图、艳图和酷图
http://image.yisou.com
 
100兆邮箱够不够用?雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/100m/*http://cn.promo.yahoo.com/minisite/100m/

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: How to solve "Premature end of script headers?

Posted by Mike Ward <un...@gmail.com>.
On Mon, 02 Aug 2004 00:30:22 -0700, Stas Bekman <st...@stason.org> wrote:
Yeah, what he said. There's really no way to know what it is based
only on "Premature end of script headers", all that means is that
something went wrong before it sent the header. Was there any other
messages in the error log?

Failing that... double check everything.

> YY Liu wrote:
> > Hi everyone!
> > I have installed apache openssl and mod_ssl. Tha
> > apache coule be started succesfuly and could run some
> > simple CGI. But when I invoke a CGI, which is for
> > check password for a portal, in a web it shows
> > "Internal Server Error" and the error_log says
> > "Premature end of script headers".
> > Is it the problem of my program or some configure
> > wrong?
> 
> Most likely it's your program. That usually means that you have sent an
> output before doing: $r->send_httpd_header.
> 
> --
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
> 
> 
> 
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
> 
>

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: How to solve "Premature end of script headers?

Posted by Stas Bekman <st...@stason.org>.
YY Liu wrote:
> Hi everyone!
> I have installed apache openssl and mod_ssl. Tha
> apache coule be started succesfuly and could run some
> simple CGI. But when I invoke a CGI, which is for
> check password for a portal, in a web it shows
> "Internal Server Error" and the error_log says
> "Premature end of script headers".
> Is it the problem of my program or some configure
> wrong? 

Most likely it's your program. That usually means that you have sent an
output before doing: $r->send_httpd_header.


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html