[mod_python] Re: Mod_python Digest, Vol 11, Issue 31

S C sameerc1 at grandecom.net
Sun Feb 29 04:17:11 EST 2004


Message: 6
Date: Sun, 29 Feb 2004 13:57:30 +0200
From: Serg Kozhemyakin <luc at server.by>
Subject: Re: [mod_python] mod_python installation \ initial setup help
To: mod_python at modpython.org
Message-ID: <200402291357.30059.luc at server.by>
Content-Type: text/plain;  charset="koi8-r"

÷ ÓÏÏÂÝÅÎÉÉ ÏÔ Sun February 29 2004 04:51 S C ÎÁÐÉÓÁÌ(a):


>> def handler(req):
>>         req.write("Hello World!")
>>         return apache.OK
>

>Just add req.content_type="text/plain" before req.write.
>
>  
>

I tried that.  it doesn't help.  My browser still wants to save the 
file, it is not executed at the server side by mod_python.  Any other 
suggestions?

Thanks in advance !!!



More information about the Mod_python mailing list