Non Parsed Headers in Python

Gerhard Häring gh at ghaering.de
Wed Feb 11 05:24:14 EST 2004


Fuzzyman wrote:
> How do I make a python CGI output whilst it is still running - how do
> I tell the server not to buffer the output ?
> 
> I have seen instructions for Perl, but not for python......

Starting your CGI script with

#!/usr/bin/env python -u

should do the trick.

-- Gerhard




More information about the Python-list mailing list