in reply to Re: Re: Re: CGI header doesn't like me
in thread CGI header doesn't like me

I tried with the following code, and I got no problems:
use CGI; my $cgi = new CGI; print $cgi->header('text/plain'); print <<HTML; <HTML> <BODY> HELLO HTML! </BODY> </HTML> HTML
I got the following output:
Content-Type: text/plain; charset=ISO-8859-1 <HTML> <BODY> HELLO HTML! </BODY> </HTML>
HTML return code 200 means that the browser is happy with the stream but have no content to print, so the browser prints some debug message. Adding an extra return tells the browser to display the empty page.

There was nothing wrong with the browser nor the code.