in reply to Premature end of script headers

HTTP headers are delimited by \r\n, not \n.

Replies are listed 'Best First'.
Re^2: Premature end of script headers
by JavaFan (Canon) on May 11, 2010 at 13:05 UTC
    Yes, and? The script isn't talking HTTP. HTTP is the protocol between the server and the browser. This is conversation between the server and a program. They are using the CGI protocol. I'm not aware of any server that doesn't know how to deal with "\n" being used instead of "\r\n" in the CGI protocol.