Problem with CGI termination
Paolo G. Cantore
paolo.cantore at zxa.basf-ag.de
Tue Sep 19 08:32:45 EDT 2000
It is because of the buffered output of your print statement.
Use sys.stdout.flush() to force the output to the client and the
page will immediately appear.
Hope this helps
Sandipan Gangopadhyay wrote:
> My python CGI script (RHLinux6.2, Apache1.3.12) ends its response to a form
> submission with a
> print "</HTML>"
>
> However, this HTML document page does not appear on the client until the CGI
> process finishes execution.
>
> How can I force CGI in python to force the client to render the response
> page without waiting for the server CGI script to terminate ?
>
> Regards,
>
> Sandipan
--
/* Paolo G. Cantore paolo.cantore at basf-ag.de */
/* BASF AG ZLA/SP Zentrale Informatik */
/* D-67056 Ludwigshafen Tel. +49-621-60-43987 */
/* Germany Fax. +49-621-60-20833 */
More information about the Python-list
mailing list