[mod_python] multipart/x-mixed-replace

Bjorn Sundberg sundberg.bjorn at gmail.com
Thu Nov 10 20:01:43 EST 2005


Hello. I am a newcomer to both mod_python and python.
I am trying to get the multipart/x-mixed-replace to work with mod_python.
But when i am running it it will not display any text in my firefox browser.
But when looking in the "display page source" i can see the text.

Do you out there know what i am doing wrong?

Regards Björn.

----Code---
#!/usr/bin/env python
import time
from mod_python import psp

def index(req):
req.content_type='multipart/x-mixed-replace;boundary=test'
req.write("---test\n")
for i in range(5):
req.content_type='text/plain'
req.write("Hello Browser")
req.write("\n--test\n")
time.sleep(1)
---End---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20051111/aa7c9c38/attachment.html


More information about the Mod_python mailing list