Shawn Sharp wrote: > I am working on some perl cgi code that works on an apache webserver > but I get the following error when I run it on a boa webserver > > [08/Sep/2004:23:41:09 +0000] cgi_header: unable to find LFLF. > > I have tried the following change > > From: > > print "content-type: text/html\n\n"; > > changed to: > > print "content-type: text/html\r\n\r\n"; > > any ideas.
I don't know what Boa is, but the controlling standard is RFC2616 (http://www.faqs.org/rfcs/rfc2616.html), which calls for CRLF as the line terminator in the message header section. But see also section 19.3, "Tolerant Applications". Apache follows the tolerant applications recommendations. This kind of thing is why we recommend you use the CGI module instead of rolling your own code. use CGI ':standard'; print header; For kicks, have a look at the CGI.pm source code ("perldoc -m CGI") and search for the string "Define the CRLF sequence". It may be possible that Boa is not RFC-compliant. If you use the CGI module's header() method and it still doesn't work, I would take it up with the Boa folks... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>