[Zope] Content-Disposition

Oliver Bleutgen myzope@gmx.net
Mon, 22 Apr 2002 13:37:34 +0200


Richard Wesley wrote:
> I am not having any luck trying to download some script-generated text 
> from a browser (IE5/Mac in this case).  When I try the following in a 
> python method:
> 
> request.RESPONSE.setHeader('Content-Disposition', 'attachment; 
> filename=file.txt')
> print 'Hello, filesystem!'
> return printed
> 
> all that happens is that IE displays the text.  Not very helpful.
> 
> Any suggestions gratefully received.
> - rmgw

read and weep:

http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/moniker/overview/appendix_a.asp

cheers,
oliver