in reply to Re: Re: Re: CGI header doesn't like me
in thread CGI header doesn't like me
I got the following output:use CGI; my $cgi = new CGI; print $cgi->header('text/plain'); print <<HTML; <HTML> <BODY> HELLO HTML! </BODY> </HTML> 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.Content-Type: text/plain; charset=ISO-8859-1 <HTML> <BODY> HELLO HTML! </BODY> </HTML>
|
|---|