[reportlab-users] Returning PDF to a browser?

Christoph Zwerschke reportlab-users@reportlab.com
Mon, 1 Dec 2003 11:04:39 +0100


Yes, especially MSIE doesn't care much for the MIME types and HTTP header
provided by the web server, but seems to focus on the file (URL) suffix when
interpreting what to do with a document. Sometimes it helps when you write
doc.cgi?dummy=.pdf or rename the CGI program to doc.pdf instead of doc.cgi
(maybe using URL rewrite).

Here are some more hints:
http://webware.colorstudy.net/twiki/bin/view/Webware/PdfCreationWithReportLab001

Christoph Zwerschke

----- Original Message ----- 
From: "Andy Robinson" <andy@reportlab.com>
To: <reportlab-users@reportlab.com>
Sent: Saturday, November 29, 2003 8:01 PM
Subject: RE: [reportlab-users] Returning PDF to a browser?


> > You should also check for Internet Explorer that the URL actually ends
> > with a .pdf  as it sometimes seems to get the type from the extension
> > rather than the Content type in my experience
> >
> > David
>
> When I first started doing this 3 years ago, the raw PDF would often
> display as you describe.  Changing executable cgi scripts from
> 'myapp.cgi' to 'myapp.pdf' was more effective than headers.
> However, I have seen this less often in the last 2 years.
> It would be good to collect some data on this.
>
> Can you repeat the problem with a particular version of IE?
> Have you tried other browsers?
>
> Thanks,
>
> Andy Robinson
>
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>