I have a Python script that transmits a file to the user.  An excerpt:

    if not skipctypeheader:
        # Set the content type if one is defined for the file
        ctype = file.getProperty('content_type', d=None)
        if ctype:
            RESPONSE.setHeader('Content-Type', ctype)

    RESPONSE.setHeader('Content-Disposition', 'inline; filename=%s' % filename)

We most commonly use this to send PDF reports.  After a recent upgrade
from Zope 2.8.something to 2.9.3 (on FreeBSD via "ports"), IE users can
only sometimes get the file - they otherwise get a blank page. 

Running 'curl' gives the header values I'd expect:

$ curl -vv -O 
'http://web2.xrsnet.com/publicstore/download?filename=print.pdf&password=foo' > 
/dev/null
* About to connect() to web2.xrsnet.com port 80
*   Trying 10.45.14.64... connected
* Connected to web2.xrsnet.com (10.45.14.64) port 80
> GET /publicstore/download?filename=print.pdf&password=foo HTTP/1.1
> User-Agent: curl/7.15.1 (i486-pc-linux-gnu) libcurl/7.15.1 OpenSSL/0.9.8a 
> zlib/1.2.3 libidn/0.5.18
> Host: web2.xrsnet.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Wed, 16 Aug 2006 22:26:11 GMT
< Server: Zope/(Zope 2.9.3-, python 2.4.3, freebsd6) ZServer/1.1
< Content-Length: 1742
< Content-Type: application/pdf; charset=iso-8859-15
< Content-Disposition: inline; filename=print.pdf
< Vary: User-Agent
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1742  100  1742    0     0  30301      0 --:--:-- --:--:-- --:--:--     0* 
Connection #0 to host web2.xrsnet.com left intact

* Closing connection #0


Would some IE users please let me know whether they can view this PDF
normally?

    http://web2.xrsnet.com/publicstore/download?filename=print.pdf&password=foo

Any speculation about what might be causing this is extremely welcome.  I'm
*not* looking forward to rolling back to 2.8.x (and Python 2.3) at this
point.
-- 
Kirk Strauser
The Day Companies

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

Reply via email to