CGI "download" prompt?

Daniel Orner cidolfas at rpgclassics.com
Mon Jul 28 10:09:05 EDT 2003


Gerhard Häring <gh at ghaering.de> wrote in message news:<mailman.1059154658.26970.python-list at python.org>...
> Irmen de Jong wrote:
> > Gerhard H ring wrote:
> > 
> >> 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
> > 
> > I didn't know about Content-Disposition! If this works,
> > that's very nice-- especially if the filename part of that
> > header is actually used by the web browser.
> 
> That's what it is about. See http://www.faqs.org/rfcs/rfc2183.html for 
> details :)
> 
> -- Gerhard

Great, it works! Thanks very much!




More information about the Python-list mailing list