Re: Valid headers? Runs ok from command line, but not from browser
Charles C. Fu (ccwf@bacchus.com)
Sat, 24 Oct 1998 00:24:33 -0700 (PDT)
David A. Lee wrote:
> Strictly speaking the line terminator [for CGI output is] \r\n\r\n
> but many browsers and servers dont require it. Maybe you're running
> into a server that requires an actual CR/NL pair?
Actually, Dave, this isn't always true. The draft CGI spec
(draft-coar-cgi-v11-00) says that CGI scripts under UNIX and AmigaDOS
are supposed to use just a linefeed but recommends 'servers SHOULD
also accept CR LF as a newline' for compatibility. For other
platforms, no line terminator is mandated.
-ccwf