Dario de Judicibus said:
P.S. Note that even if I modified HTML code by adding type attribute, IE6
seems to ignore it!!!
<a href="myfile.pkg" type="application/x-pkg">MyFile.pkg</a>
Sorry for missing this. I still think that MIME sniffing is occurring
even if you don't have an option to disable it. <eg>
http://msdn.microsoft.com/library/d...op/networking/moniker/overview/appendix_a.asp
(MSN search for
"MIME sniffing" site:microsoft.com
)
<quote>
2. If the server-provided MIME type is either known or ambiguous,
the buffer is scanned in an attempt to verify or obtain a MIME type
from the actual content. If a positive match is found (one of the hard-coded
tests succeeded), this MIME type is immediately returned as the final
determination, overriding the server-provided MIME type (this type of
behavior is necessary to identify a .gif file being sent as text/html).
During scanning, it is determined if the buffer is predominantly text or binary.
</quote>
What does the first 256 bytes of the content look like?
Is it unique or could it be mistaken for one of the Known MIME types?
Notice that unique data would get you to step 3 in the procedure.
Do you have an entry for x-pkg in the registry?
(I assume that would help make it "known")
<example>
HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/x-pkg
</example>
Looks like all it has to do is match up with an extension which is then
associated with a particular application via filetype.
E.g. presumably there would then also be detail showing with each
of the following commands (in a cmd window):
assoc pkg
ftype PKGFile (or whatever the real filetype is)
I would like to see some documentation which describes
how to diagnose problems such as your case,
e.g. some trace records generated by the cited procedure
but I haven't found any.
HTH
Robert
---