[mod_python] (servlet) download files with req.sendfile

Sharky at Code Zone sharky at codezone.ath.cx
Wed Jul 14 03:44:03 EDT 2004


Hi,

    I have a test mod_python.servlet in
http://pytsts2.codezone.ath.cx/dwn69 and don't know how to explain
because my pour english but i will go try  8-)

    When i use req.sendfile('filename') my browser (Mozila) don't know
the file type and name for download the file. It uses script filename.
But if i download the file directly, my browser download fine and know
the download filename and type.

    What are missing from my code? What i'm doing wrong?

Thanks,
Sharky

PS.: Sorry my n00b questions 8-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://modpython.org/pipermail/mod_python/attachments/20040714/752d76e9/attachment.html


More information about the Mod_python mailing list