mod_python

daniela eilers d.eilers at freenet.de
Wed Apr 17 17:58:15 EDT 2002


hi, experts
currently, i'm a python beginner.
normal python script run with apache, no probs.
trying to run mod_python under apache i get the following error message:

premature end of script headers. 

there is the code of my cgi script:

from mod_python import apache 
         def handler(req): 
              req.content_type = "text/html" 
              req.send_http_header() 
              req.write("Hello World") 
              return apache.OKimport apache 

what's wrong? have somebody an idea?


thx for help
greetz
daniela



More information about the Python-list mailing list