Tip: MIME Types in IIS

Source: Internet
Author: User
Tags format iis mail pkcs7 client mail exchange
Iis|mime| Tricks MIME (Multipurpose Internet Mail Extensions, multi-purpose Internet Message extensions) is created for e-mail exchange, network documentation, And the specification of file formats in the enterprise network and other applications on the Internet.

Each MIME format contains a MIME content type and a subtype indicating the data stored in this file. Each MIME type is made up of two parts, preceded by a large category of data, such as sound audio, image image, and so on, followed by the definition of a specific kind. MIME types and subtypes are generally listed in the form of type/subtype, such as the type "text/html" of the Web page.

In HTTP, the MIME type is defined in the Content-type header.

For example, set up you want to send a Microsoft Excel file to the client. Then the MIME type is "application/vnd.ms-excel". In most cases, the file will then be routed to execl for processing (assuming we set execl as an application to handle a particular MIME type).

In ASP, the method of setting MIME type is through the Response object's ContentType property.

In the earliest HTTP protocol, there was no additional data type information, all the transmitted data was interpreted by the client as Hypertext Markup Language HTML document, and in order to support multimedia data types, the HTTP protocol used the MIME data type information appended to the document to identify the data type.

MIME is a multi-mesh Internet Mail extension designed to provide additional multimedia data when sending e-mail messages, allowing mail clients to process them according to their type. When it is supported by the HTTP protocol, however, its significance is even more pronounced. It makes the HTTP transmission not only ordinary text, but become rich and colorful.

Common MIME Types

Hypertext Markup Language text. html,.html text/html
Plain text. txt Text/plain
RTF text. rtf Application/rtf
GIF graphics. gif image/gif
JPEG Graphics-ipeg,.jpg image/jpeg
Au sound file. Au audio/basic
Midi Music file Mid,.midi Audio/midi,audio/x-midi
RealAudio music files. RA,. Ram Audio/x-pn-realaudio
MPEG files. Mpg,.mpeg video/mpeg
AVI file. avi Video/x-msvideo
gzip files. GZ application/x-gzip
Tar file. Tar Application/x-tar

There is a dedicated organization of the IANA on the Internet to confirm standard MIME types, but the Internet is growing too fast for many applications to wait for the IANA to confirm that the MIME types they use are standard types. So they use the method of X-opening in the category to identify that the category has not yet become a standard, such as X-gzip,x-tar. The fact that these types are widely used has become a fact standard.

As long as both the client and the server recognize this MIME type, even if it is not a standard type, the client program can handle the data according to the MIME type using a specific processing method. For Web servers and browsers (including the operating system), the default is to set the standard and common MIME types, and only for unusual MIME types is it necessary to set up both the server and the client browser for identification.

Because the MIME type is related to the suffix of the document, the server uses the suffix of the document to differentiate between the MIME types of the different files, and the correspondence between the document suffix and the MIME type must be defined in the server. When the client receives data from the server, it simply accepts the data stream from the server and does not know the name of the document, so the server must use additional information to tell the client the MIME type of the data. Before the server sends the real data, it sends the MIME type of the flag data, which is defined using the Content-type keyword, for example, for HTML documents, where the server first sends the following two lines of MIME identity information, which is not part of the real data file.

MIME format in IIS, sorted by type/subtype The following table lists MIME content types sorted by MIME content type/subtype:
Application/envoyevy
Application/fractalsfif
Application/futuresplashspl
Application/htahta
Application/internet-property-streamacx
Application/mac-binhex40hqx
Application/msworddoc
Application/msworddot
application/octet-stream*
Application/octet-streambin
Application/octet-streamclass
Application/octet-streamdms
Application/octet-streamexe
Application/octet-streamlha
Application/octet-streamlzh
Application/odaoda
Application/olescriptaxs
Application/pdfpdf
Application/pics-rulesprf
Application/pkcs10p10
Application/pkix-crlcrl
Application/postscriptai
Application/postscripteps
Application/postscriptps
Application/rtfrtf
Application/set-payment-initiationsetpay
Application/set-registration-initiationsetreg
Application/vnd.ms-excelxla
Application/vnd.ms-excelxlc
Application/vnd.ms-excelxlm
Application/vnd.ms-excelxls
Application/vnd.ms-excelxlt
Application/vnd.ms-excelxlw
Application/vnd.ms-pkicertstoresst
Application/vnd.ms-pkiseccatcat
Application/vnd.ms-pkistlstl
Application/vnd.ms-powerpointpot,
Application/vnd.ms-powerpointpps
Application/vnd.ms-powerpointppt
Application/vnd.ms-projectmpp
application/vnd.ms-workswcm
Application/vnd.ms-workswdb
Application/vnd.ms-workswks
Application/vnd.ms-workswps
Application/winhlphlp
Application/x-bcpiobcpio
Application/x-cdfcdf
Application/x-compressz
Application/x-compressedtgz
Application/x-cpiocpio
Application/x-cshcsh
Application/x-directordcr
Application/x-directordir
Application/x-directordxr
Application/x-dvidvi
Application/x-gtargtar
Application/x-gzipgz
Application/x-hdfhdf
Application/x-internet-signupins
Application/x-internet-signupisp
Application/x-iphoneiii
Application/x-javascriptjs
Application/x-latexlatex
Application/x-msaccessmdb
Application/x-mscardfilecrd
Application/x-msclipclp
Application/x-msdownloaddll
Application/x-msmediaviewm13
Application/x-msmediaviewm14
Application/x-msmediaviewmvb
Application/x-msmetafilewmf
Application/x-msmoneymny
Application/x-mspublisherpub
Application/x-msschedulescd
Application/x-msterminaltrm
Application/x-mswritewri
Application/x-netcdfcdf
Application/x-netcdfnc
Application/x-perfmonpma
Application/x-perfmonpmc
Application/x-perfmonpml
Application/x-perfmonpmr
Application/x-perfmonpmw
Application/x-pkcs12p12
Application/x-pkcs12pfx
application/x-pkcs7-certificatesp7b
Application/x-pkcs7-certificatesspc
application/x-pkcs7-certreqrespp7r
application/x-pkcs7-mimep7c
application/x-pkcs7-mimep7m
Application/x-pkcs7-signaturep7s
Application/x-shsh
Application/x-sharshar
Application/x-stuffitsit
Application/x-sv4cpiosv4cpio
Application/x-sv4crcsv4crc
Application/x-tartar
Application/x-tcltcl
Application/x-textex
Application/x-texinfotexi
Application/x-texinfotexinfo
Application/x-troffroff
Application/x-trofft
Application/x-trofftr
Application/x-troff-manman
Application/x-troff-meme
Application/x-troff-msms
Application/x-ustarustar
Application/x-wais-sourcesrc
Application/x-x509-ca-certcer
Application/x-x509-ca-certcrt
Application/x-x509-ca-certder
Application/ynd.ms-pkipkopko
Application/zipzip
Audio/basicau
Audio/basicsnd
Audio/midmid
Audio/midrmi
Audio/mpegmp3
Audio/x-aiffaif
Audio/x-aiffaifc
Audio/x-aiffaiff
Audio/x-mpegurlm3u
Audio/x-pn-realaudiora
Audio/x-pn-realaudioram
Audio/x-wavwav
Image/bmpbmp
Image/cis-codcod
Image/gifgif
Image/iefief
Image/jpegjpe
Image/jpegjpeg
Image/jpegjpg
Image/pipegjfif
Image/tifftif
Image/tifftiff
Image/x-cmu-rasterras
Image/x-cmxcmx
Image/x-iconico
Image/x-portable-anymappnm
Image/x-portable-bitmappbm
Image/x-portable-graymappgm
image/x-portable-pixmapppm
Image/x-rgbrgb
Image/x-xbitmapxbm
image/x-xpixmapxpm
Image/x-xwindowdumpxwd
Message/rfc822mht
Message/rfc822mhtml
Message/rfc822nws
Text/csscss
text/h323323
Text/htmlhtm
Text/htmlhtml
Text/htmlstm
Text/iulsuls
Text/plainbas
Text/plainc
Text/plainh
Text/plaintxt
Text/richtextrtx
Text/scriptletsct
Text/tab-separated-valuestsv
Text/webviewhtmlhtt
Text/x-componenthtc
Text/x-setextetx
text/x-vcardvcf
Video/mpegmp2
Video/mpegmpa
Video/mpegmpe
Video/mpegmpeg
Video/mpegmpg
Video/mpegmpv2
Video/quicktimemov
Video/quicktimeqt
Video/x-la-asflsf
Video/x-la-asflsx
video/x-ms-asfasf
Video/x-ms-asfasr
video/x-ms-asfasx
Video/x-msvideoavi
Video/x-sgi-moviemovie
X-world/x-vrmlflr
X-world/x-vrmlvrml
X-world/x-vrmlwrl
X-world/x-vrmlwrz
X-world/x-vrmlxaf
X-world/x-vrmlxof

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.