[mod_python] Problems with req.content_type and req.sendfile in IE, but Opera/Mozilla works.

Ole Jacob Hagen waterthrill at yahoo.no
Wed Sep 8 14:01:06 EDT 2004


A closer explanation.

Both IE-5.5 and IE-6.x lists out the file content in a new window, where 
the adobe reader plugins should be activated.

The 5 first lines of PDF-file is:
"%PDF-1.4 3 0 obj << /Length 504 /Filter /FlateDecode"

Could pdf version 1.4 cause the problem?


Cheers,

Ole

Ole Jacob Hagen wrote:

> Hi.
>
> I need a workaround for the Internet Explorer browser as this code 
> doesn't works:
> %% snip of my psp-code %%
>    fpdf = PDF_PATH + "/" + "pdf.pdf"
>    req.content_type = 'application/pdf'
>    req.sendfile(fpdf)
>
> %% end of snip %%
>
> Yes, it works in Opera, konqueror, and Firefox, but not in Internet 
> Explorer.
> There has to be a workaround for this? There are some companies that 
> never will follow a standard....
>
> Cheers,
>
> Ole J.
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>



More information about the Mod_python mailing list