You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ulrich Mayring <ul...@denic.de> on 2001/01/19 11:49:42 UTC

IE/PDF bugfix in FAQ unclear

Hello,

in the FAQ it says that I should add ?dummy=test.pdf to the URL to make
IE consider the MIME type. It also says that the URL addition should end
in .pdf - why is that? I was under the impression that adding any kind
of request parameter will cause IE to not find a filename extension and
then look at the MIME type. Or is it in fact so that IE will see .pdf
and then NOT look at the MIME type, but assume PDF? Then the FAQ should
be corrected in this respect.

Thanks for clarification,

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

Re: IE/PDF bugfix in FAQ unclear

Posted by Berin Loritsch <bl...@apache.org>.
Ulrich Mayring wrote:

> Hello,
> 
> 
> 
> in the FAQ it says that I should add ?dummy=test.pdf to the URL to make
> 
> IE consider the MIME type. It also says that the URL addition should end
> 
> in .pdf - why is that? I was under the impression that adding any kind
> 
> of request parameter will cause IE to not find a filename extension and
> 
> then look at the MIME type. Or is it in fact so that IE will see .pdf
> 
> and then NOT look at the MIME type, but assume PDF? Then the FAQ should
> 
> be corrected in this respect.


Actually the "good" people at Microsoft fixed that oversight in IE 5.5.
It doesn't matter what kinds of parameters you have in the URL, as long
as it ends in .pdf you should be OK.  That means that the URL parsing
algorithm was made that much faster as it really doesn't care what you
do with it.  If there is a registered mime-type with the propper extension
at the end then MS will treat it accordingly.

The following will be treated as xml:

new.pdf?isthis=.xml

The following will be treated as pdf:

new.xml?isthis=.pdf