having serious problems getting a python CGI to work

Roland Heiber news_and_listsr at web.de
Tue Jun 1 18:00:22 CEST 2004

John Draper wrote:

> print """Content-Type: text/html; charset="iso-8859-1"\n"""

You need \n\n after the header.

import sys
sys.stdout.write("""Content-Type: text/html;charset="iso-8859-1"\n\n""")

Try this ... if the webserver is executing the cgi's using 
suexecusergroup, take a look at the suexec log in your log-dir.

HtH, Roland

More information about the Python-list mailing list