[Zope-dev] PDF-specific Bug in the ZServer implementation??? Or just strange behavoiur of IE?

sean.upton@uniontrib.com sean.upton@uniontrib.com
Mon, 07 Jan 2002 12:44:45 -0800


Acrobat uses something called byte-serving, which is a pain to support
sometimes on the server-side, because it essentially amounts to serving
parts of a file up to a given byte offset; when Acrobat acts as an HTTP
client, it requests the PDF file, and once it has enough of the top of the
doc to get header info from the file, it is able to omit downloading the
whole thing and request portions of the file between 2 byte offsets, which
represent the start and end of a page, as part of the http request.
Byte-serving, unfortunately is not implemented in all http servers (or is
broken in some, i.e. Apache 1.3.14).  I'm not sure what the story for
ZServer is, but I am curious to find out if there have been any developments
in this regard...

More info in the IETF RFC for HTTP 1.1:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.12

Sean

-----Original Message-----
From: Joachim Werner [mailto:joe@iuveno-net.de]
Sent: Monday, January 07, 2002 12:28 PM
To: zope-dev@zope.org
Subject: [Zope-dev] PDF-specific Bug in the ZServer implementation??? Or
just strange behavoiur of IE?


Hi!

This is my first post in the new year, so best wishes for 2002 from Germany!

And on we go with my problem:

I have a ZClass-based Class derived from File. It holds PDF documents. SOME
(not all) of them do not auto-open in Acrobat Reader as they are supposed to
if MS IE 5.x is used. Opera etc. seem to work. The files themselves are
o.k., and opening in Acrobat Reader AFTER downloading (via right
mouseclick/save as) works fine, too.

If the same document that doesn't auto-open when downloaded fom the Zope
server is downloaded from plain Apache, it works ...

The configuration is Zope 2.4.1 (binary release, python 2.1, linux2-x86),
python 2.1.0, linux2 on a SuSE Linux with Apache as Proxy server (via
proxy_pass). I checked the HTTP header with WGET, and they are identical for
working and non-working PDF docs. The mime type is set to application/pdf
...

Any hints on that?

Joachim


_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )