curl-users
Re: Beginner's help with Perl and Curl
From: Kevin Carothers <kevindotcar_at_gmail.com>
Date: Mon, 30 Apr 2007 12:51:41 -0700
Date: Mon, 30 Apr 2007 12:51:41 -0700
On 4/28/07, Kjell Ericson <Kjell.Ericson_at_haxx.se> wrote:
>
> On Fri, 27 Apr 2007, Scott Medaugh wrote:
>
> > [Fri Apr 27 15:49:16 2007] [error] [client 00.00.00.00 ] Premature end
> of
> > script headers: index.pl
>
> This can be anything. Perhaps no "Content-type" is outputted from the
> script,
> or you can't execute it (can you do it from the command line?). Perhaps
> you
> aren't allowed to run cgi-scripts on the web server, or wrong permissions.
My usual culprit (Just my humble 2cts) is the .cgi script is not saved in
UNIX-format (lf) - but rather is saved as DOS (cr/lf)- This makes a
difference even on Windows Apache servers.
HTH
KC
Received on 2007-04-30