cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Beginner's help with Perl and Curl - SOLVED

From: Scott Medaugh <medaugh_at_bellsouth.net>
Date: Thu, 3 May 2007 11:49:19 -0400

I found that the problem was in the perl script in which I was not returning anything back to the caller. So far I have been able to upload binary and ascii without any problems. Thanks to everyone for their help.

  ----- Original Message -----
  From: Kevin Carothers
  To: the curl tool
  Sent: Monday, April 30, 2007 3:51 PM
  Subject: Re: Beginner's help with Perl and Curl

  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-05-03