Philippe C. Martin wrote: > Hi, > > The following code outputs the actual HTML text to the browser, not the > interpreted text. > > Any idea ? > > html_ok = """ > Content-Type: text/html\n > <html> > ... > """
Avoid the starting newline (before content-type). Add at least TWO newlines after content-type. Or use a package to handle the HTTP stuff for you. -- http://mail.python.org/mailman/listinfo/python-list