[Zope] Adding content type to internet explorer
Farrell, Troy
troy.farrell@wilcom.com
Tue, 16 Jan 2001 10:07:35 -0600
Actually, I'm not a newbie, but that is the nicest greeting a "newbie" has
gotten on this list that I know of. Thanks.
To see how IE looks at MIME types, look here:
http://msdn.microsoft.com/workshop/networking/moniker/overview/appendix_a.as
p
From the looks of it:
IE first looks at the
Content-Type: application/x-pdf (or whatever you are using)
header from the server. If that is an unknown type and unambiguous, it
returns the data as whatever the server calls it.
If the type is known AND ambiguous (text/plain or application/octet-stream),
IE parses the data and guesses. If it comes to no conclusion, then it looks
at the extension.
Try a
<dtml-call expr="RESPONSE.setHeader('Content-Type', 'application/x-pdf')">
or whatever is appropriate for your application.
AFAIK NS looks only at the Content-Type: header, but I consider myself
ignorant in that area.
Troy
-----Original Message-----
From: Hung Jung Lu [mailto:hungjunglu@hotmail.com]
Sent: Tuesday, January 16, 2001 8:38 AM
To: troy.farrell@wilcom.com
Subject: RE: [Zope] Adding content type to internet explorer
Thanks. But I have done that before I posted the message. The thing is,
changing Windows file type ("Classes") is not enough, because the IE would
prompt you a question on whether you want to save the file or open it in
place. I am asking the question because there are products out there that
use the file-MIME-type trick to launch applications. That is, you click on a
mundane HTML link and you launch a local application, without IE asking you
any question. Obviously something inside the IE (or registry) has been
tweaked. Anyway, a bit too technical.
On the other issue of posting topics only related to Zope, I can tell you
are a newbie. Welcome to Zope.
regards,
Hung Jung
>In W95/NT:
> Open a File Explorer window (not IE) and select Options from the View
>menu.
> The popup will have a tab labeled File Types. This is how you change
>windows MIME types.
>In W98/2k:
> I don't remember and I don't have it with me. It is a similar option
>under IE (since there is no normal explorer.
>
>The settings are stored in the registry, but this is the easiest way to
>edit
>them. Please try to keep the list topics to zope.
>
>Thanks.
>Troy
>
>-----Original Message-----
>From: Hung Jung Lu [mailto:hungjunglu@hotmail.com]
>Sent: Monday, January 15, 2001 5:18 PM
>To: zope@zope.org
>Subject: [Zope] Adding content type to internet explorer
>
>
>Hi,
>
>Can someone tell me how to add content types (and the associated program)
>to
>
>internet explorer on Windows platform? Is it in the registry?
>
>thanks,
>
>Hung Jung
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com