[reportlab-users] Returning PDF to a browser?

David Fraser reportlab-users@reportlab.com
Mon, 01 Dec 2003 08:40:28 +0200


Dennis Allison wrote:

>IE is broken and ignores the content-type mime header in favor of the file
>extension--hence pdf's need to have the extension.  You also need to
>include the content-type and (possibly) the size mime headers for other
>browsers.
>  
>
Do you know which particular versions of IE this applies to?

Thanks
David

>On Mon, 1 Dec 2003, David Fraser wrote:
>
>  
>
>>Andy Robinson wrote:
>>
>>    
>>
>>>>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
>>> 
>>>
>>>      
>>>
>>Hi Andy
>>
>>Yes, this seems to happen with IE 5, and most people have upgraded.
>>It's mostly on our clients machines we have the problem, if I can work 
>>it out I'll post more details here
>>
>>Thanks
>>David
>>
>>_______________________________________________
>>reportlab-users mailing list
>>reportlab-users@reportlab.com
>>http://two.pairlist.net/mailman/listinfo/reportlab-users
>>
>>    
>>
>
>_______________________________________________
>reportlab-users mailing list
>reportlab-users@reportlab.com
>http://two.pairlist.net/mailman/listinfo/reportlab-users
>
>  
>