python cgi script not understood as html

Philippe C. Martin pmartin at snakecard.com
Mon Oct 24 22:18:27 CEST 2005


Many thanks !!

Regards,

Philippe



Mitja Trampus wrote:

> 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.




More information about the Python-list mailing list