CGI "download" prompt?
Gerhard Häring
gh at ghaering.de
Fri Jul 25 10:45:19 EDT 2003
Daniel Orner wrote:
>>Try setting the Content-Type: header to something other than text/html,
>>such as: application/octet-stream [...]
Erhm. Let's suppose you want to send an RTF file and have the browser
pop up a save dialog with a certain filename preconfigured:
Then send these headers:
Content-Type: application/rtf
Content-Disposition: attachment; filename=mydocument.rtf
-- Gerhard
More information about the Python-list
mailing list