python cgi script not understood as html

Philippe C. Martin pmartin at snakecard.com
Mon Oct 24 16:41:57 EDT 2005


It is, thanks.

Philippe



Peter Hansen wrote:

> 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