python cgi script not understood as html
Peter Hansen
peter at engcorp.com
Mon Oct 24 16:16:36 EDT 2005
Philippe C. Martin wrote:
> The following code outputs the actual HTML text to the browser, not the
> interpreted text.
>
> html_ok = """
> Content-Type: text/html\n
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">\n
HTTP header lines must end with \r\n, not just with \n. Not sure this
is the solution to your specific problem though...
-Peter
More information about the Python-list
mailing list