[Tutor] py cgi can't show up correctly in Netscape

pan at uchicago.edu pan at uchicago.edu
Fri Apr 23 18:19:24 EDT 2004

Dear all,

Thx for all who responded. At the same time that I asked the question
on this list, I also sent the question to the server manager. He modified
the file for me by adding the line:

print "Content-Type: text/html"

right after #!/usr/bin/python, which solved the problem. That's why 
some of you guys didn't get any incorrect output.

It turns out that IE and Opera doesn't need this line for a python cgi
to behave correctly.


More information about the Tutor mailing list