My application streams pdf files from disk (not zodb) to the
user, and I’ve been writing the http header more or less manually.
I’ve had some strange problems with downloading – one particular
third-party pdf plugin acts as if the file can not be found, and Internet
Explorer arbitrarily, yet consistently pops the Open/Save/Cancel dialog for 1% of
files, while launching a plugin for the other 99%.
My header looks like this:
HTTP/1.1 200 OK
Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2)
ZServer/1.1
Date: Wed, 19 Jan 2005 17:08:30 GMT
Content-Length: 20004
Content-Type: application/pdf
Connection: close
Content-Disposition: filename="attachment.pdf"
Is there anything missing or malformed that could be causing
trouble?
Nathaniel