[Zope] Content-Disposition
Richard Wesley
hawkfish@electricfish.com
Wed, 17 Apr 2002 15:30:01 -0700
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
<http://www.electricfish.com/hawkfish/>
----------------------------------------------------------------------------
Richard Wesley Electric Fish, Inc. hawkfish@electricfish.com
"I found it at the bottom of a locked filing cabinet, in a disused
lavatory with a sign on the door saying 'Beware of the leopard.'"
- Douglas Adams, _The Hitchhiker's Guide to the Galaxy_