How Browsers (IE) understand file types.

Ask a Question related to ASP, Design and Development.

  1. #1

    Default 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

    [url]http://MyServer/MyDoc.pdf[/url] 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:

    [url]http://MyServer/ReturnMyDoc.asp[/url]

    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.


    Roberto Guest

  2. Similar Questions and Discussions

    1. I don't understand this error: File or assembly name l6v3q9ad.dll, or one of its dependencies, was not found.
      File or assembly name l6v3q9ad.dll, or one of its dependencies, was not found.I created a WebService project using the template in VS 2003 (.Net...
    2. [PHP] File Types
      On Mon, 15 Sep 2003, Raditha Dissanayake wrote: Did that as well as googled for the list of extensions. Still can't seem to find the mime type...
    3. File Types
      I currently limit file types in an upload script by using an allowed types array $allowed_types = array("image/jpeg", "image/gif"); I also...
    4. Cannot understand file-open script stops
      I am a php beginner, so apologize if this question is just silly. I am encountering apparently random script stops when I try to get a remote...
    5. File types help
      You are probably not running a web server. Popular choice for PHP is Apache. http://www.apache.org if you have downloaded and installed apache,...
  3. #2

    Default Re: How Browsers (IE) understand file types.

    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.Document under hkey_classes_root for an example.

    --
    Mark Schupp
    Head of Development
    Integrity eLearning
    [url]www.ielearning.com[/url]


    "Roberto" <rob@1977.it> wrote in message
    news:u2%23utlwkDHA.2432@TK2MSFTNGP10.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
    >
    > [url]http://MyServer/MyDoc.pdf[/url] 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:
    >
    > [url]http://MyServer/ReturnMyDoc.asp[/url]
    >
    > 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.
    >
    >

    Mark Schupp Guest

  4. #3

    Default RE: How Browsers (IE) understand file types.

    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
    [url]http://www.microsoft.com/protect[/url] 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" <roberto.leo@exm.it>
    > From: "Roberto" <rob@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#utlwkDHA.2432@TK2MSFTNGP10.phx.gbl>
    > Newsgroups: microsoft.public.inetserver.asp.general
    > NNTP-Posting-Host: 213.255.101.214
    > Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
    > Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.asp.general:255466
    > X-Tomcat-NG: microsoft.public.inetserver.asp.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
    >
    > [url]http://MyServer/MyDoc.pdf[/url] 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:
    >
    > [url]http://MyServer/ReturnMyDoc.asp[/url]
    >
    > 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.
    >
    >
    >
    Mike Moore [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139