Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

How Internet Explorer Understand File Types.

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  IIS trouble shooting browsing  
Author Message
rob5

External


Since: Sep 30, 2003
Posts: 5



(Msg. 1) Posted: Wed Oct 15, 2003 4:44 pm
Post subject: How Internet Explorer Understand File Types.
Archived from groups: microsoft>public>inetserver>iis (more info?)

1) I have the following html code on the server:

<HTML>
....
.....
<BODY>
<A HREF = http://MyServer/MyDoc.doc> Click here to see the document</A>

When I click on the link How Internet Explorer understand that it's a Word
Document and It's necessary open it with Microsoft Word ? Is The extension
to give the necessary information to Internet Explorer ?
Where does IE look for the application to use to open the file on the server
? On the local registry ?
I have tried to rename Mydoc.doc in MyDoc.pdf and I have called

http://MyServer/MyDoc.pdf and the browser has opened Acrobat Reader but the
binary format is for Microsoft Word.

Does the Browser User an Http_Header sended automatically ? (for example
HTTP_FILE_NAME....IF IT EXISTS)

2)Now I have the following link:

http://MyServer/ReturnMyDoc.asp

It returns the binary data of MyDoc.doc file. Now I want to say to the
browser that the file is called MyDoc.doc (I don't want to use Content Type
= ms-application/msword) : is there a header to say this to Internet
Explorer ?

Thanks Rob.

 >> Stay informed about: How Internet Explorer Understand File Types. 
Back to top
Login to vote
jerryiii

External


Since: Aug 26, 2003
Posts: 171



(Msg. 2) Posted: Thu Oct 16, 2003 12:55 am
Post subject: Re: How Internet Explorer Understand File Types. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Generally the client should handle the document as what the Content-Type
header says. IIS gets it based on the extension (but you can change that),
so the behavior below is not caused by IE but IIS (well, whatever your web
server is). However, for types IE handles itself it ignores the Content-Type
and tries to guess what the document is (so if you send it HTML as
image/jpeg it will render it as HTML).

Jerry

"Roberto" <rob DeleteThis @1977.it> wrote in message
news:%239%23s9FxkDHA.392@TK2MSFTNGP11.phx.gbl...
 > 1) I have the following html code on the server:
 >
 > <HTML>
 > ...
 > ....
 > <BODY>
 > Click here to see the document</A>
 >
 > When I click on the link How Internet Explorer understand that it's a Word
 > Document and It's necessary open it with Microsoft Word ? Is The
extension
 > to give the necessary information to Internet Explorer ?
 > Where does IE look for the application to use to open the file on the
server
 > ? On the local registry ?
 > I have tried to rename Mydoc.doc in MyDoc.pdf and I have called
 >
 > <a style='text-decoration: underline;' href="http://MyServer/MyDoc.pdf" target="_blank">http://MyServer/MyDoc.pdf</a> and the browser has opened Acrobat Reader but
the
 > binary format is for Microsoft Word.
 >
 > Does the Browser User an Http_Header sended automatically ? (for example
 > HTTP_FILE_NAME....IF IT EXISTS)
 >
 > 2)Now I have the following link:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://MyServer/ReturnMyDoc.asp</font" target="_blank">http://MyServer/ReturnMyDoc.asp</font</a>>
 >
 > It returns the binary data of MyDoc.doc file. Now I want to say to the
 > browser that the file is called MyDoc.doc (I don't want to use Content
Type
 > = ms-application/msword) : is there a header to say this to Internet
 > Explorer ?
 >
 > Thanks Rob.
 >
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: How Internet Explorer Understand File Types. 
Back to top
Login to vote
user649

External


Since: Aug 25, 2003
Posts: 244



(Msg. 3) Posted: Thu Oct 16, 2003 9:50 am
Post subject: RE: How Internet Explorer Understand File Types. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Roberto,

Very good question!

I think the reply from Jerry can explain why your doc file will be rendered
to binary when you change the file extension.

So far as I know on this issue, Internet Explorer checks both the settings
for the MIME type and the file extension. The MIME settings can be set in
IIS. And the key is file extension for internet explorer which tells it
whether to popup a prompt windows for IE users. I'd suggest one kb article
will help you a lot on this issue. Please go to:
296717 PRB: Internet Explorer Prompts User to Open/Save Office File
Streamed from ASP
http://support.microsoft.com/?id=296717

Besides, you can change this behaviour following the KB article below.
Please go to:
162059 How to Configure Internet Explorer to Open Office Documents in the
Appropriate Office Program Instead of in Internet Explorer
http://support.microsoft.com/?id=162059

Please feel free to let me know if you have any further questions.

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 >> Stay informed about: How Internet Explorer Understand File Types. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Is there any file extensions that cannot be loaded from in.. - I want to use the <SCRIPT> src attribute to hide my scripting code. But anybody could just put the source file name into the address bar and see the contents of the script file. However, I thought if I could use an extension that IE would treat..

Favorites in Internet Explorer - Does anyone know how to print out the Favorites as a complete list, showing the website address? I have visited several sites and have saved them in my favorites. I would now like to print a complete list. Is this possible? Thank you.

Internet Explorer Cannot Download PDF Documents from an II.. - Has anyone experience not being able to download PDF files but can download TXT, JPG... files. I have unchecked the content expiration for the virtual directory already.

Block file types that can be downloaded - How do I block (or only allow) certain file types to be downloaded from my webserver (IIS5)? Also, How do I limit the types of messages returned from my site? Thank You, Bob

understanding log files - I am installing a web log analysis program and when I view the logfiles folder, I see there is a number of folders within it. W3SVC1, W3SVC2, W3SVC3, W3SVC4, W3SVC5, W3SVC6, W3SVC7, W3SVC9, W3SVC0, W3SVC10, W3SVC11, W3SVC12, as well as SMTPSVC numbered..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]