In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
In this issue, the editor will bring you about the collection of MIMETYPEMIME-Types types. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
What is MIME TYPE?
First, we need to understand how browsers handle content. The contents displayed in the browser include HTML, XML, GIF, and Flash. So how do browsers distinguish between them and decide what content is displayed in what form? The answer is MIME Type, which is the media type of the resource.
The media type is usually communicated to the browser by the Web server through the HTTP protocol, or, more accurately, by Content-Type, for example:
Content-Type: text/HTML
Indicates that the content is of type text/HTML, that is, a hypertext file. Why "text/HTML" instead of "HTML/text" or something? MIME Type is not specified by an individual, but is published online as a recommended standard in the form of RFC, negotiated by the ietf organization, and is supported by most Web servers and user agents (by the way, the type of Email attachment is also specified through MIME Type).
Usually only some formats that are widely used on the Internet will get a MIME Type. If it is a format defined by a client, it can only start with application/x-.
XHTML is a widely used format, so in RFC 3236, it is stated that the MIME Type of XHTML format files should be application/xHTML+XML.
Of course, when dealing with local files, the browser will do some default processing when no one tells the browser the MIME Type of a file, which may have something to do with the MIME Type that you configure for the file in the operating system. For example, under Windows, open the "HKEY_LOCAL_MACHINESOFTWAREClassesMIMEDatabaseContent Type" primary key of the registry, and you can see all the configuration information of MIME Type.
When transmitting the output to the browser, the browser must launch the appropriate application to process the output document. This can be done through multiple types of MIME (Multifunctional Internet Mail extension Protocol). In HTTP, the MIME type is defined in Content-Type header.
For example, set up you want to transfer a Microsoft Excel file to the client. Then the MIME type at this time is "application/vnd.ms-excel". In most practical cases, this file is then passed to Execl for processing (assuming we set Execl to handle a special MIME type of application). In ASP, the way to set the MIME type is through the ContentType property of the Response object.
Multimedia file format MIME
In the earliest HTTP protocol, there was no additional data type information, and all the transmitted data were interpreted as hypertext markup language HTML documents by client programs. In order to support multimedia data types, MIME data type information appended to the document was used to identify data types in HTTP protocol.
MIME, which means multi-purpose Internet mail extension, was originally designed to attach multimedia data when sending e-mail, so that mail clients can process it according to its type. However, when it is supported by the HTTP protocol, its significance becomes more significant. It makes HTTP not only transmit ordinary text, but also become rich and colorful.
Each MIME type consists of two parts, preceded by a large category of data, such as sound audio, image image, and so on, followed by a specific category.
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 file .ra, .ram audio/x-pn-realaudio
MPEG file .mpg, .mpeg video/mpeg
AVI file .avi video/x-msvideo
GZIP file .gz application/x-gzip
TAR file .tar application/x-tar
There is a special organization in Internet, IANA, to identify standard MIME types, but Internet is growing so fast that many applications can't wait for IANA to confirm that the MIME type they use is standard. So they use the method that starts with x-in the category to indicate that the category has not yet become a standard, for example: xmurgzipdyxMurtar and so on. In fact, these types are widely used and have become the de facto standard. As long as the client and server recognize this MIME type, even if it is a non-standard type, the client program can use specific processing methods to process the data according to the MIME type. In Web servers and browsers (including operating systems), standard and common MIME types are set by default, and only for uncommon MIME types, both server and client browsers need to be set for identification.
Because the MIME type is related to the suffix of the document, the server uses the suffix of the document to distinguish the MIME types of different files, and the correspondence between the document suffix and the MIME type must be defined in the server. When the client program receives data from the server, it only receives 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 must send the MIME type information of the flag data, which is defined by the Content-type keyword. For example, for the HTML document, the server will first send the following two lines of MIME identification information, which is not part of the real data file.
Content-type: text/html
Note that the second behavior is a blank line, which is necessary, which is used to separate the MIME information from the actual data content.
MIME (Multipurpose Internet Mail Extensions) is an Internet standard that describes the type of message content.
MIME messages can contain text, images, audio, video, and other application-specific data.
The official MIME information is provided by Internet Engineering Task Force (IETF) in the following document:
RFC-822 Standard for ARPA Internet text messages
RFC-2045 MIME Part 1: Format of Internet Message Bodies
RFC-2046 MIME Part 2: Media Types
RFC-2047 MIME Part 3: Header Extensions for Non-ASCII Text
RFC-2048 MIME Part 4: Registration Procedures
RFC-2049 MIME Part 5: Conformance Criteria and Examples
Different applications support different MIME types.
MIME Types
MIME Typ
MIME (Multipurpose Internet Mail Extensions) is an Internet standard for describes message content types.
MIME (Multi-purpose Internet Mail extension Protocol) is an international standard for describing the type of information content.
MIME messages can contain text, images, audio, video, and other application-specific data.
MIME information can contain text, images, audio, video, and other application detail data.
Official MIME info is provided by the Internet Engineering Task Force (IETF) in the following documents:
The official MIME information is provided by the following documents in the internet Engineering Task Force (IETF):
RFC-822 Standard for ARPA Internet text messages [ARPA Internet text message Standard]
RFC-2045 MIME Part 1: Format of Internet Message Bodies [MIME part 1: format of Internet information bodies]
RFC-2046 MIME Part 2: Media Types [MIME part 2: multimedia types]
RFC-2047 MIME Part 3: Header Extensions for Non-ASCII Text [MIME part 3: header extension for non-ASCII text]
RFC-2048 MIME Part 4: Registration Procedures [MIME part 4: registration procedure]
RFC-2049 MIME Part 5: Conformance Criteria and Examples [MIME part 5: conformance standards and cases]
Different applications support different MIME types.
Different applications support different MIME types.
The reference below is a list of MIME types supported by Microsoft Internet Information Server version 5.
Microsoft IIS5 and above support the following parameter lists for MIME types.
MIME Types By Content Type
MIME type in Content [content] type
Type/sub-type
Type / Secondary Type Extension
Extension application/envoyevyapplication/fractalsfifapplication/futuresplashsplapplication/htahtaapplication/internet-property-streamacxapplication/mac-binhex40hqxapplication/msworddocapplication/msworddotapplication/octet-stream*application/octet-streambinapplication/octet-streamclassapplication/octet-streamdmsapplication/octet-streamexeapplication/octet-streamlhaapplication/octet-streamlzhapplication/odaodaapplication/olescriptaxsapplication/pdfpdfapplication/pics-rulesprfapplication/pkcs10p10application/pkix-crlcrlapplication/postscriptaiapplication/postscriptepsapplication/postscriptpsapplication/rtfrtfapplication/set-payment-initiationsetpayapplication/set-registration-initiationsetregapplication/vnd.ms-excelxlaapplication/vnd.ms-excelxlcapplication/vnd.ms-excelxlmapplication/vnd.ms-excelxlsapplication/vnd.ms -excelxltapplication/vnd.ms-excelxlwapplication/vnd.ms-pkicertstoresstapplication/vnd.ms-pkiseccatcatapplication/vnd.ms-pkistlstlapplication/vnd.ms-powerpointpot Application/vnd.ms-powerpointppsapplication/vnd.ms-powerpointpptapplication/vnd.ms-projectmppapplication/vnd.ms-workswcmapplication/vnd.ms-workswdbapplication/vnd.ms-workswksapplication/vnd.ms-workswpsapplication/winhlphlpapplication/x-bcpiobcpioapplication/x-cdfcdfapplication/x-compresszapplication/x-compressedtgzapplication/x-cpiocpioapplication/x-cshcshapplication/x-directordcrapplication/x-directordirapplication/x-directordxrapplication/x-dvidviapplication/x-gtargtarapplication/x-gzipgzapplication/x-hdfhdfapplication/x-internet-signupinsapplication/x-internet-signupispapplication/x-iphoneiiiapplication/x-javascriptjsapplication/x- Latexlatexapplication/x-msaccessmdbapplication/x-mscardfilecrdapplication/x-msclipclpapplication/x-msdownloaddllapplication/x-msmediaviewm13application/x-msmediaviewm14application/x-msmediaviewmvbapplication/x-msmetafilewmfapplication/x-msmoneymnyapplication/x-mspublisherpubapplication/x-msschedulescdapplication/x-msterminaltrmapplication/x-mswritewriapplication/x-netcdfcdfapplication/x-netcdfncapplication/x-perfmonpmaapplication/x-perfmonpmcapplication/x-perfmonpmlapplication/x-perfmonpmrapplication/x-perfmonpmwapplication/x-pkcs12p12application/x-pkcs12pfxapplication/x-pkcs7-certificatesp7bapplication/x-pkcs7-certificatesspcapplication/x-pkcs7-certreqrespp7rapplication/x-pkcs7-mimep7capplication/x-pkcs7-mimep7mapplication/ X-pkcs7-signaturep7sapplication/x-shshapplication/x-sharsharapplication/x-stuffitsitapplication/x-sv4cpiosv4cpioapplication/x-sv4crcsv4crcapplication/x-tartarapplication/x-tcltclapplication/x-textexapplication/x-texinfotexiapplication/x-texinfotexinfoapplication/x-troffroffapplication/x-trofftapplication/x-trofftrapplication/x-troff-manmanapplication/x-troff-memeapplication/x-troff-msmsapplication/x-ustarustarapplication/x-wais-sourcesrcapplication/x-x509-ca-certcerapplication/x-x509-ca-certcrtapplication/x-x509-ca-certderapplication/ynd.ms-pkipkopkoapplication/zipzipaudio/basicauaudio/ Basicsndaudio/midmidaudio/midrmiaudio/mpegmp3audio/x-aiffaifaudio/x-aiffaifcaudio/x-aiffaiffaudio/x-mpegurlm3uaudio/x-pn-realaudioraaudio/x-pn-realaudioramaudio/x-wavwavimage/bmpbmpimage/cis-codcodimage/gifgifimage/iefiefimage/jpegjpeimage/jpegjpegimage/jpegjpgimage/pipegjfifimage/svg+xmlsvgimage/tifftifimage/tifftiffimage/x-cmu-rasterrasimage/x-cmxcmximage/x-iconicoimage/x-portable-anymappnmimage/x-portable-bitmappbmimage/x-portable-graymappgmimage/x-portable-pixmapppmimage/x-rgbrgbimage/x-xbitmapxbmimage/x-xpixmapxpmimage/x-xwindowdumpxwdmessage/rfc822mhtmessage/ Rfc822mhtmlmessage/rfc822nwstext/csscsstext/h423323text/htmlhtmtext/htmlhtmltext/htmlstmtext/iulsulstext/plainbastext/plainctext/plainhtext/plaintxttext/richtextrtxtext/scriptletscttext/tab-separated-valuestsvtext/webviewhtmlhtttext/x-componenthtctext/x-setextetxtext/x-vcardvcfvideo/mpegmp2video/mpegmpavideo/mpegmpevideo/mpegmpegvideo/mpegmpgvideo/mpegmpv2video/quicktimemovvideo/quicktimeqtvideo/x-la-asflsfvideo/x-la-asflsxvideo/x-ms-asfasfvideo/x-ms-asfasrvideo/x-ms-asfasxvideo/x-msvideoavivideo/x-sgi-moviemoviex-world/x-vrmlflrx-world/x-vrmlvrmlx-world/x- Vrmlwrlx-world/x-vrmlwrzx-world/x-vrmlxafx-world/x-vrmlxof
Mime types listed by file extension
Extension
Extension Type/sub-type
Type / Secondary Type application/octet-stream323text/h423acxapplication/internet-property-streamaiapplication/postscriptaifaudio/x-aiffaifcaudio/x-aiffaiffaudio/x-aiffasfvideo/x-ms-asfasrvideo/x-ms-asfasxvideo/x-ms-asfauaudio/basicavivideo/x-msvideoaxsapplication/olescriptbastext/plainbcpioapplication/x-bcpiobinapplication/octet-streambmpimage/bmpctext/plaincatapplication/vnd.ms-pkiseccatcdfapplication/x-cdfcerapplication/x-x509-ca-certclassapplication/octet-streamclpapplication/x-msclipcmximage/x-cmxcodimage/cis-codcpioapplication/x-cpiocrdapplication/x-mscardfilecrlapplication/pkix-crlcrtapplication / x-x509-ca-certcshapplication/x-cshcsstext/cssdcrapplication/x-directorderapplication/x-x509-ca-certdirapplication/x-directordllapplication/x-msdownloaddmsapplication/octet-streamdocapplication/msworddotapplication/msworddviapplication/x-dvidxrapplication/x-directorepsapplication/postscriptetxtext/x-setextevyapplication/envoyexeapplication/octet-streamfifapplication/fractalsflrx-world/x-vrmlgifimage/gifgtarapplication/x-gtargzapplication/x-gziphtext/plainhdfapplication/x-hdfhlpapplication/winhlphqxapplication/mac-binhex40htaapplication/htahtctext/x-componenthtmtext/htmlhtmltext/htmlhtttext/webviewhtmlicoimage/x-iconiefimage/iefiiiapplication/x-iphoneinsapplication/x-internet-signupispapplication / x-internet-signupjfifimage/pipegjpeimage/jpegjpegimage/jpegjpgimage/jpegjsapplication/x-javascriptlatexapplication/x-latexlhaapplication/octet-streamlsfvideo/x-la-asflsxvideo/x-la-asflzhapplication/octet-streamm13application/x-msmediaviewm14application/x-msmediaviewm3uaudio/x-mpegurlmanapplication/x-troff-manmdbapplication/x-msaccessmeapplication/x-troff-memhtmessage/rfc822mhtmlmessage/rfc822midaudio/midmnyapplication/x-msmoneymovvideo/quicktimemovievideo/x-sgi-moviemp2video/mpegmp3audio/mpegmpavideo/mpegmpevideo/mpegmpegvideo/mpegmpgvideo/mpegmppapplication/vnd.ms-projectmpv2video/mpegmsapplication/x-troff-msmvbapplication/x-msmediaviewnwsmessage/rfc822odaapplication / odap10application/pkcs10p12application/x-pkcs12p7bapplication/x-pkcs7-certificatesp7capplication/x-pkcs7-mimep7mapplication/x-pkcs7-mimep7rapplication/x-pkcs7-certreqrespp7sapplication/x-pkcs7-signaturepbmimage/x-portable-bitmappdfapplication/pdfpfxapplication/x-pkcs12pgmimage/x-portable-graymappkoapplication/ynd.ms-pkipkopmaapplication/x-perfmonpmcapplication/x-perfmonpmlapplication/x-perfmonpmrapplication/x-perfmonpmwapplication/x-perfmonpnmimage/x-portable-anymappot Application/vnd.ms-powerpointppmimage/x-portable-pixmapppsapplication/vnd.ms-powerpointpptapplication/vnd.ms-powerpointprfapplication/pics-rulespsapplication/postscriptpubapplication/x-mspublisherqtvideo/quicktimeraaudio/x-pn-realaudioramaudio/x-pn-realaudiorasimage/x-cmu-rasterrgbimage/x-rgbrmiaudio/midroffapplication/x-troffrtfapplication/rtfrtxtext/richtextscdapplication/x-msschedulescttext/scriptletsetpayapplication/set-payment-initiationsetregapplication/set-registration-initiationshapplication/x-shsharapplication/x-sharsitapplication/x-stuffitsndaudio/basicspcapplication/x-pkcs7-certificatessplapplication/futuresplashsrcapplication/x-wais-sourcesstapplication/vnd.ms- Pkicertstorestlapplication/vnd.ms-pkistlstmtext/htmlsvgimage/svg+xmlsv4cpioapplication/x-sv4cpiosv4crcapplication/x-sv4crctapplication/x-trofftarapplication/x-tartclapplication/x-tcltexapplication/x-textexiapplication/x-texinfotexinfoapplication/x-texinfotgzapplication/x-compressedtifimage/tifftiffimage/tifftrapplication/x-trofftrmapplication/x-msterminaltsvtext/tab-separated-valuestxttext/plainulstext/iulsustarapplication/x-ustarvcftext/x-vcardvrmlx-world/x-vrmlwavaudio/x-wavwcmapplication/vnd.ms-workswdbapplication/vnd.ms-workswksapplication/vnd.ms-workswmfapplication/x-msmetafilewpsapplication/vnd.ms-workswriapplication/x-mswritewrlx- World/x-vrmlwrzx-world/x-vrmlxafx-world/x-vrmlxbmimage/x-xbitmapxlaapplication/vnd.ms-excelxlcapplication/vnd.ms-excelxlmapplication/vnd.ms-excelxlsapplication/vnd.ms-excelxltapplication/vnd.ms-excelxlwapplication/vnd.ms-excelxofx-world/x-vrmlxpmimage/x-xpixmapxwdimage/x-xwindowdumpzapplication/x-compresszipapplication/zip, this is what the collection of MIMETYPEMIME-Types types shared by the editor looks like. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.