473,626 Members | 3,675 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How Browsers (IE) understand file types.

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.
Jul 19 '05 #1
2 2313
The association is in the client system registry. Usually set up when you
install the application that is intended to view the document. look at .pdf
and AcroExch.Docume nt under hkey_classes_ro ot for an example.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Roberto" <ro*@1977.it> wrote in message
news:u2******** ********@TK2MSF TNGP10.phx.gbl. ..
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.

Jul 19 '05 #2
Hi Rob,

Thank you Mark for your info. I thought I might expand on it a bit.

1)
IE knows which application to run based on the file's file extension (.doc
or .pdf) along with the content type (ms-application/msword). IE matches
these up with the local registry to determine which application to launch.

2)
Here the file extension is .asp. That means the content type must be used
for IE to distinguish what application to launch. You wrote that you don't
want to use content type either. That means IE will not know which
application to launch.

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security.

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
Reply-To: "Roberto" <ro*********@ex m.it>
From: "Roberto" <ro*@1977.it>
Subject: How Browsers (IE) understand file types.
Date: Wed, 15 Oct 2003 12:46:32 +0200
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <u2************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.inetserver.as p.general
NNTP-Posting-Host: 213.255.101.214
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.inetserver.as p.general:25546 6
X-Tomcat-NG: microsoft.publi c.inetserver.as p.general

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.


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
5688
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is difficult to know what is going on. One of these Order Forms you can see here... http://www.cardman.co.uk/orderform.php3
3
3585
by: Mathew | last post by:
Hi How do you specfiy the version of the .net runtime libraries loaded for a ..net controls hosted in Internet Explorer 6? I have a control that's designed to work with .NET 1.1, but after installing the VS.NET 2005 beta the web browser embedded control is now running in the .NET 2.0 beta runtime environment, and crashing. Is it possible to have different IE hosted controls running side by side in different versions of the .NET...
12
2573
by: confused | last post by:
After expressing my interest in expanding my new knowledge of HTML and CSS into the wild realm of JavaScript, I was advised that it is wiser to avoid it, since not all browsers are use it or are enabled to read it. After searching for other opinions on the web, I found that some estimate that the frequency of browsers that can read JS currently is better than 90% -- that is certainly workable for me! Do you good people have any thoughts...
15
2222
by: alamsetti | last post by:
I have recently installed php, apache on windows xp. I have wrote a simple test file -- test.php <?php echo "hello world" ?>
24
1804
by: abracad_1999 | last post by:
I'm told the standards way of referencing page content is document.getElementById() What is the lowest version of each browser type with which this will work? Thank you
2
3190
by: Jonathan Trevor | last post by:
Hi, For the last couple of releases of a product we're developing we've been running to very wierd behavior from IE and our ASP.NET web application which serves up various types of files and I'm getting very frustrated in trying to solve it! We content we are serving up is potentially sensitive and therefore we DO NOT want it cached on the remote client (IE) beyond the lifetime of the application rendering it (IE, Powerpoint, Word...
6
2484
by: Doug Mazzacua | last post by:
I noticed that that <ul> lists display differently with <br> between <li>s in IE and Mozilla. Does anyone know of a reference that catalogs all of the known types of differences in display between browsers? Or do you all just do multiple tests of all your pages? Thanks in advance for any advice. _________________________________________
133
6856
by: Alan Silver | last post by:
Hello, Just wondered what range of browsers, versions and OSs people are using to test pages. Also, since I don't have access to a Mac, will I have problems not being able to test on any Mac browsers, or is there some other way of checking? TIA --
77
4487
by: VK | last post by:
Randy Webb wrote: > VK said the following on 5/2/2006 9:48 AM: > > If you mean "trying to render it" then FF behavior is the same as for > > all other UA's willing to be in use (and not W3C demos). If document is > > served as text/html, FF will render it somehow anyhow. > > So you are saying it totally disregards the DTD and any hints from the > server how to handle the document? Except server reported Content-Type (text/plain,...
0
8265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5574
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2625
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.