Python CGI - Script outputs source of generated page
The default Content Type is text, and if you forgot to send the appropriate header in your CGI file, you will end up with what you are seeing.
I have a CGI script that I wrote in python to use as the home page of the website I am creating. Everything works properly except when you view the page instead of seeing the page that it outputs you see the source code of the page, why is this? I dont mean that it shows me the source code of the .py file, it shows me all the printed information as if I were looking at a .htm file in notepad.