in reply to Re: Premature end of script headers
in thread Premature end of script headers

Hey bob. Thanks for your comments. The premature end of script headers is the last thing in my log. There are no others. Any other ideas?
  • Comment on Re: Re: Premature end of script headers

Replies are listed 'Best First'.
Re: Re: Re: Premature end of script headers
by bobn (Chaplain) on Aug 01, 2003 at 18:34 UTC

    There are no ther entries in the error_log? that is strange

    Other posters have had great suggestions coming down to

    1. use "\r\n" instead of "\n" when sending headers (though my testing doesn't indicate that this is the problem, YMMV)

    2. turn on warnings with -w in the #! line or use warnings; in the script.

    3. run this from the command line and see what happens, possibly finding some way to feed it the values it wants. At least run as perl -cw scriptname which will find compile time errors.

    4. use CGI; to rpint the redirection (probably without the headers, as others have noted here,

    --Bob Niederman, http://bob-n.com