|Syntactic Confectionery Delight|
Unexpected "text/plain" output with cgiby Samn (Monk)
|on Nov 13, 2002 at 17:02 UTC||Need Help??|
Samn has asked for the wisdom of the Perl Monks concerning the following question:
I'm reworking my perl driven site and have managed to create a perplexing new error. The output of my pages comes as a "Text Dociment" instead of an HTML document.
Displays just fine in all browsers, and is (almost) W3C verified. But when accessing any of the pages on the site like
It is apparently transmitted as a text document. In IE this renders flawlessly, but the W3C validator on the page says it can not be parsed. As well, Mozilla based browsers just display the HTML code instead of rendering it as a webpage.
A novice, I'm baffled and don't even know where to begin.
My index.cgi looks to see if it has been passed a "page=" variable. If it has, it runs the specified subroutine. Many of the pages/subroutines are complex with database calls and what not, but the specific one above ("kittens") is only a single print statement.
If no "page=" is specified, index.cgi does nothing and leaves the main HTML cell empty.
Where should I start with this?
Illustration of index.cgi: