RE: python cgi script not understood as html

2005-10-25 Thread Iyer, Prasad C
Your python script is not getting executed. I guess there is something wrong with the server configuration. #-Original Message- #From: Philippe C. Martin [mailto:[EMAIL PROTECTED] #Sent: Tuesday, October 25, 2005 1:27 AM #To: python-list@python.org #Subject: python cgi script

python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
Hi, The following code outputs the actual HTML text to the browser, not the interpreted text. Any idea ? Regards, Philippe import cgi import logging import auth #this is the one you must implement (or use SCF ;-) html_ok = Content-Type: text/html\n !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01

Re: python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
the title should say python cgi script html output not understood as html Philippe C. Martin wrote: Hi, The following code outputs the actual HTML text to the browser, not the interpreted text. Any idea ? Regards, Philippe import cgi import logging import auth #this is the one

Re: python cgi script not understood as html

2005-10-24 Thread Mitja Trampus
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

Re: python cgi script not understood as html

2005-10-24 Thread Peter Hansen
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

Re: python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
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

Re: python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
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