What is MIME TYPE? MIME-Types type collection

What is MIME TYPE? MIME-Types type collection
What is MIME TYPE?

1. First, we need to understand how browsers process content. The content displayed in the browser includes HTML, XML, GIF, and Flash... So, how does the browser distinguish them and decide what content to display in what form? The answer is MIME Type, which is the media type of the resource.

The media type is usually told to the browser by the web server through the HTTP protocol, more precisely, through Content-Type, for example:

Content-Type: text/HTML

Indicates that the content is of type text/HTML, that is, a hypertext document. Why "text/HTML" and not "HTML/text" or something else? MIME Type is not specified by individuals, but is negotiated by the ietf organization and published on the Internet in the form of RFC as a recommended standard. Most web servers and user agents support this specification (by the way, the type of email attachments is also specified by MIME Type).

Usually only some formats that are widely used on the Internet will have a MIME Type. If it is a format defined by a client, it can generally only start with application/x-.

XHTML is a widely used format. Therefore, RFC 3236 states that the MIME Type of XHTML format files should be application/xHTML+XML.

Of course, when processing local files, if no one tells the browser the MIME Type of a file, the browser will also do some default processing, which may be related to the MIME Type you configured for the file in the operating system. For example, under Windows, open the registry key "HKEY_LOCAL_MACHINESOFTWAREClassesMIMEDatabaseContent Type" and you can see the configuration information of all MIME Types.

Second, when the output results are transmitted to the browser, the browser must launch the appropriate application to process the output document. This can be done using various types of MIME (Multipurpose Internet Mail Extensions). In HTTP, the MIME type is defined in the Content-Type header.

For example, suppose you want to send a Microsoft Excel file to a client. Then the MIME type at this time is "application/vnd.ms-excel". In most practical cases, this file will then be passed to Execl for processing (assuming we set Execl as the application to handle the specific MIME type). In ASP, the method 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. All transmitted data was interpreted by the client program as Hypertext Markup Language HTML documents. In order to support multimedia data types, the HTTP protocol used MIME data type information attached to the document to identify the data type.

MIME stands for Multi-purpose Internet Mail Extensions. It was originally designed to attach multimedia data when sending emails so that email clients can process them according to their type. However, when it is supported by the HTTP protocol, its significance becomes more significant. It makes HTTP transmission more than just ordinary text, but also rich and colorful.

Each MIME type consists of two parts. The first part is the general category of data, such as audio, image, etc., and the second part defines the specific type.

Common MIME types

Hypertext Markup Language text.html,.html text/html
Plain text.txt text/plain
Rich 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 file.gz application/x-gzip
TAR file.tar application/x-tar

There is a special organization IANA on the Internet to confirm standard MIME types, but the Internet is developing too fast and many applications cannot wait for IANA to confirm that the MIME types they use are standard types. Therefore they use the method of starting the category with x- to indicate that this category has not yet become a standard, for example: x-gzip, x-tar, etc. In fact, these types are so widely used that they have become de facto standards. As long as the client and server both recognize the MIME type, it does not matter even if it is a non-standard type. The client program can use specific processing methods to process the data based on the MIME type. In Web servers and browsers (including operating systems), standard and common MIME types are set by default. Only for uncommon MIME types do you need to set up both the server and the client browser for identification.

Since the MIME type is related to the document suffix, the server uses the document suffix to distinguish the MIME types of different files. 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 understand the name of the document, so the server must use additional information to tell the client program the MIME type of the data. Before sending the actual data, the server will first send the MIME type information that identifies the data. This information is defined using the Content-type keyword. For example, for an HTML document, the server will first send the following two lines of MIME identification information. This identification is not part of the actual data file.

Content-type: text/html

Note that the second line is a blank line, which is required. The purpose of using this blank line is to separate the MIME information from the actual data content.

MIME (Multipurpose Internet Mail Extensions) is an Internet standard for describing message content types.
MIME messages can contain text, images, audio, video, and other application-specific data.
Official MIME information is provided by the 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 Type


MIME (Multipurpose Internet Mail Extensions) is an Internet standard for describes message content types.
MIME (Multipurpose Internet Mail Extensions) is an international standard for describing the content type of a message.

MIME messages can contain text, images, audio, video, and other application-specific data.
MIME messages can contain text, images, audio, video, and other application-specific data.

Official MIME info is provided by the Internet Engineering Task Force (IETF) in the following documents:
Official MIME information is provided by the following documents from the Internet Engineering Task Force (IETF):

RFC-822 Standard for ARPA Internet text messages
RFC-2045 MIME Part 1: Format of Internet Message Bodies [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 [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 [MIME Part 5: Conformance Criteria and Examples]
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 MIME type parameter list.

MIME Types By Content Type
MIME type in Content type

Type/sub-type
Type/Secondary Type
Extension
Extension
application/envoy Evy
application/fractals fif
application/futuresplash spl
application/hta hta
application/internet-property-stream acx
application/mac-binhex40 qx
application/msword doc
application/msword dot
application/octet-stream *
application/octet-stream bin
application/octet-stream class
application/octet-stream dms
application/octet-stream exe
application/octet-stream 1h
application/octet-stream 1
application/oda oda
application/olescript axs
application/pdf pdf
application/pics-rules prf
application/pkcs10 p10
application/pkix-crl crl
application/postscript artificial intelligence
application/postscript eps
application/postscript ps
application/rtf rtf
application/set-payment-initiation setpay
application/set-registration-initiation setreg
application/vnd.ms-excel xla
application/vnd.ms-excel x
application/vnd.ms-excel xlm
application/vnd.ms-excel xls
application/vnd.ms-excel xlt
application/vnd.ms-excel xw
application/vnd.ms-pkicertstore sst
application/vnd.ms-pkiseccat cat
application/vnd.ms-pkistl stl
application/vnd.ms-powerpoint pot,
application/vnd.ms-powerpoint pps
application/vnd.ms-powerpoint ppt
application/vnd.ms-project mpp
application/vnd.ms-works wcm
application/vnd.ms-works wdb
application/vnd.ms-works wks
application/vnd.ms-works wps
application/winhlp hlp
application/x-bcpio bcpio
application/x-cdf cdf
application/x-compress z
application/x-compressed tgz
application/x-cpio cpio
application/x-csh csh
application/x-director dcr
application/x-director dir
application/x-director dxr
application/x-dvi dvi
application/x-gtar gtar
application/x-gzip gz
application/x-hdf hdf
application/x-internet-signup ins
application/x-internet-signup ISP
application/x-iphone iii
application/x-javascript js
application/x-latex latex
application/x-msaccess mdb
application/x-mscardfile crd
application/x-msclip clp
application/x-msdownload dll
application/x-msmediaview m13
application/x-msmediaview m14
application/x-msmediaview mvb
application/x-msmetafile wmf
application/x-msmoney mny
application/x-mspublisher pub
application/x-msschedule scd
application/x-msterminal trm
application/x-mswrite wri
application/x-netcdf cdf
application/x-netcdf nc
application/x-perfmon pma
application/x-perfmon pmc
application/x-perfmon pml
application/x-perfmon pmr
application/x-perfmon pmw
application/x-pkcs12 p12
application/x-pkcs12 pfx
application/x-pkcs7-certificates p7b
application/x-pkcs7-certificates spc
application/x-pkcs7-certreqresp p7
application/x-pkcs7-mime p7c
application/x-pkcs7-mime p7m
application/x-pkcs7-signature p7s
application/x-sh sh
application/x-shar Shar
application/x-stuffit sit
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-tar tar
application/x-tcl tcl
application/x-tex tex
application/x-texinfo texi
application/x-texinfo texinfo
application/x-troff roff
application/x-troff t
application/x-troff tr
application/x-troff-man man
application/x-troff-me me
application/x-troff-ms ms
application/x-ustar ustar
application/x-wais-source src
application/x-x509-ca-cert cer
application/x-x509-ca-cert crt
application/x-x509-ca-cert der
application/ynd.ms-pkipko pko
application/zip zip
audio/basic au
audio/basic snd
audio/mid mid
audio/mid rmi
audio/mpeg mp3
audio/x-aiff aif
audio/x-aiff aifc
audio/x-aiff aiff
audio/x-mpegurl m3u
audio/x-pn-realaudio ra
audio/x-pn-realaudio ram
audio/x-wav wav
image/bmp bmp
image/cis-cod cod
image/gif gif
image/ief ief
image/jpeg jpe
image/jpeg jpeg
image/jpeg jpg
image/pipeg jfif
image/svg+xml svg
image/tiff tif
image/tiff tiff
image/x-cmu-raster ras
image/x-cmx cmx
image/x-icon ico
image/x-portable-anymap pnm
image/x-portable-bitmap pbm
image/x-portable-graymap pgm
image/x-portable-pixmap ppm
image/x-rgb RGB
image/x-xbitmap xbm
image/x-xpixmap xpm
image/x-xwindowdump xwd
message/rfc822 mht
message/rfc822 mhtml
message/rfc822 nws
text/css CSS
text/h323 323
text/html htm
text/html html
text/html stm
text/iuls uls
text/plain bas
text/plain c
text/plain h
text/plain txt
text/richtext rtx
text/scriptlet sct
text/tab-separated-values tsv
text/webviewhtml htt
text/x-component htc
text/x-settext etx
text/x-vcard vcf
video/mpeg mp2
video/mpeg mpa
video/mpeg mpe
video/mpeg mpeg
video/mpeg mpg
video/mpeg mpv2
video/quicktime mov
video/quicktime qt
video/x-la-asf lsf
video/x-la-asf lsx
video/x-ms-asf asf
video/x-ms-asf asr
video/x-ms-asf asx
video/x-msvideo avi
video/x-sgi-movie movie
x-world/x-vrml flr
x-world/x-vrml vrml
x-world/x-vrml wrl
x-world/x-vrml wz
x-world/x-vrml xaf
x-world/x-vrml xof


Mime types listed by file extension

Extension
Extension
Type/sub-type
Type/Secondary Type
application/octet-stream
323 text/h323
acx application/internet-property-stream
artificial intelligence application/postscript
aif audio/x-aiff
aifc audio/x-aiff
aiff audio/x-aiff
asf video/x-ms-asf
asr video/x-ms-asf
asx video/x-ms-asf
au audio/basic
avi video/x-msvideo
axs application/olescript
bas text/plain
bcpio application/x-bcpio
bin application/octet-stream
bmp image/bmp
c text/plain
cat application/vnd.ms-pkiseccat
cdf application/x-cdf
cer application/x-x509-ca-cert
class application/octet-stream
clp application/x-msclip
cmx image/x-cmx
cod image/cis-cod
cpio application/x-cpio
crd application/x-mscardfile
crl application/pkix-crl
crt application/x-x509-ca-cert
csh application/x-csh
CSS text/css
dcr application/x-director
der application/x-x509-ca-cert
dir application/x-director
dll application/x-msdownload
dms application/octet-stream
doc application/msword
dot application/msword
dvi application/x-dvi
dxr application/x-director
eps application/postscript
etx text/x-settext
Evy application/envoy
exe application/octet-stream
fif application/fractals
flr x-world/x-vrml
gif image/gif
gtar application/x-gtar
gz application/x-gzip
h text/plain
hdf application/x-hdf
hlp application/winhlp
qx application/mac-binhex40
hta application/hta
htc text/x-component
htm text/html
html text/html
htt text/webviewhtml
ico image/x-icon
ief image/ief
iii application/x-iphone
ins application/x-internet-signup
ISP application/x-internet-signup
jfif image/pipeg
jpe image/jpeg
jpeg image/jpeg
jpg image/jpeg
js application/x-javascript
latex application/x-latex
1h application/octet-stream
lsf video/x-la-asf
lsx video/x-la-asf
1 application/octet-stream
m13 application/x-msmediaview
m14 application/x-msmediaview
m3u audio/x-mpegurl
man application/x-troff-man
mdb application/x-msaccess
me application/x-troff-me
mht message/rfc822
mhtml message/rfc822
mid audio/mid
mny application/x-msmoney
mov video/quicktime
movie video/x-sgi-movie
mp2 video/mpeg
mp3 audio/mpeg
mpa video/mpeg
mpe video/mpeg
mpeg video/mpeg
mpg video/mpeg
mpp application/vnd.ms-project
mpv2 video/mpeg
ms application/x-troff-ms
mvb application/x-msmediaview
nws message/rfc822
oda application/oda
p10 application/pkcs10
p12 application/x-pkcs12
p7b application/x-pkcs7-certificates
p7c application/x-pkcs7-mime
p7m application/x-pkcs7-mime
p7 application/x-pkcs7-certreqresp
p7s application/x-pkcs7-signature
pbm image/x-portable-bitmap
pdf application/pdf
pfx application/x-pkcs12
pgm image/x-portable-graymap
pko application/ynd.ms-pkipko
pma application/x-perfmon
pmc application/x-perfmon
pml application/x-perfmon
pmr application/x-perfmon
pmw application/x-perfmon
pnm image/x-portable-anymap
pot, application/vnd.ms-powerpoint
ppm image/x-portable-pixmap
pps application/vnd.ms-powerpoint
ppt application/vnd.ms-powerpoint
prf application/pics-rules
ps application/postscript
pub application/x-mspublisher
qt video/quicktime
ra audio/x-pn-realaudio
ram audio/x-pn-realaudio
ras image/x-cmu-raster
RGB image/x-rgb
rmi audio/mid
roff application/x-troff
rtf application/rtf
rtx text/richtext
scd application/x-msschedule
sct text/scriptlet
setpay application/set-payment-initiation
setreg application/set-registration-initiation
sh application/x-sh
Shar application/x-shar
sit application/x-stuffit
snd audio/basic
spc application/x-pkcs7-certificates
spl application/futuresplash
src application/x-wais-source
sst application/vnd.ms-pkicertstore
stl application/vnd.ms-pkistl
stm text/html
svg image/svg+xml
sv4cpio application/x-sv4cpio
sv4crc application/x-sv4crc
t application/x-troff
tar application/x-tar
tcl application/x-tcl
tex application/x-tex
texi application/x-texinfo
texinfo application/x-texinfo
tgz application/x-compressed
tif image/tiff
tiff image/tiff
tr application/x-troff
trm application/x-msterminal
tsv text/tab-separated-values
txt text/plain
uls text/iuls
ustar application/x-ustar
vcf text/x-vcard
vrml x-world/x-vrml
wav audio/x-wav
wcm application/vnd.ms-works
wdb application/vnd.ms-works
wks application/vnd.ms-works
wmf application/x-msmetafile
wps application/vnd.ms-works
wri application/x-mswrite
wrl x-world/x-vrml
wz x-world/x-vrml
xaf x-world/x-vrml
xbm image/x-xbitmap
xla application/vnd.ms-excel
x application/vnd.ms-excel
xlm application/vnd.ms-excel
xls application/vnd.ms-excel
xlt application/vnd.ms-excel
xw application/vnd.ms-excel
xof x-world/x-vrml
xpm image/x-xpixmap
xwd image/x-xwindowdump
z application/x-compress
zip application/zip

<<:  Weather icon animation effect implemented by CSS3

>>:  About WSL configuration and modification issues in Docker

Recommend

How to install mysql on centos and set up remote access

1. Download the mysql repo source $ wget http://r...

MySQL data compression performance comparison details

Table of contents 1. Test environment 1.1 Hardwar...

Centos8 (minimum installation) tutorial on how to install Python3.8+pip

After minimizing the installation of Python8, I i...

Vue implementation example using Google Recaptcha verification

In our recent project, we need to use Google robo...

Detailed explanation of flex layout in CSS

Flex layout is also called elastic layout. Any co...

How to implement scheduled automatic backup of MySQL under CentOS7

The happiest thing that happens in a production e...

The difference between HTML name id and class_PowerNode Java Academy

name Specify a name for the tag. Format <input...

How to install MySql in CentOS 8 and allow remote connections

Download and install. First check whether there i...

Mysql database index interview questions (basic programmer skills)

Table of contents introduction Indexing principle...

Mysql Sql statement comments

You can add comments to MySQL SQL statements. Her...

Implementation steps of Mysql merge results and horizontal splicing fields

Preface Recently, I was working on a report funct...

How to use Nginx to realize the coexistence of multiple containers in the server

background There is a Tencent Linux cloud host, o...

Insufficient memory problem and solution when docker starts elasticsearch

question Insufficient memory when docker installs...