Content-Type Error (CGI) : CGI program put all outputs in a tag <pre>
Today, I tried to write a CGI program which work with Apache Web server.
Every thing go well in Microsoft IE. But my default browser will display full output surrounded by a pre tag. I have check it again and again. Finally, I found that my Header was wrong. I wrote “Content Type: text/html\n\n” instead of the wright format :”Content-type:text/html\n\n”. So I got the error. Hope this tip will helpful for someone after me.