[Zope] http header question

Pascal Peregrina Pperegrina at Lastminute.com
Wed Jan 19 13:08:27 EST 2005


Have you tried actually uploading a PDF File (as a ZODB File object) in
Zope, then setting the content-type to application/pdf, in order to compare
the headers you get when requesting that file ?

Pascal

P.S. : please use text format when posting to the Zope mailing-lists. :))

-----Message d'origine-----
De : zope-bounces at zope.org [mailto:zope-bounces at zope.org]De la part de
Nathaniel Wingfield
Envoyé : mercredi 19 janvier 2005 18:24
À : zope at zope.org
Objet : [Zope] http header question


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
_______________________________________________

CONFIDENTIALITY NOTICE

This e-mail is intended only for the addressee named above.
It contains information that is privileged, confidential
or otherwise protected from use and disclosure. If you are
not the intended recipient, you are hereby notified that
any review, disclosure, copying, or dissemination of this
transmission, or taking of any action in reliance on its
contents, or other use is strictly prohibited.

If you have received this transmission in error, please
reply to the sender listed above immediately and
permanently delete this message from your inbox.

Thank you for your cooperation.

ID:[{20050119123043.24590.577798887-66.208.180.43}]


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



More information about the Zope mailing list