in reply to Re: Content-type: text/html
in thread Content-type: text/html

This has nothing to do with their problem. If they remove line printing the header, which is what they are reporting, they get an error. Use a proper framework for dealing with CGI (be it CGI or a 'modern' web framework), stop worrying about manually printing headers.

Update: Also, printing the header does not have to be the first line of code.