I was reading an article on COMET recently I have came across many times the word MIME? I googled it found that MIME is Multipurpose Internet Mail Extension. And also i came across the sentence
multipart/x-mixed-replace” feature of
the MIME standard . .
What does multipart/x-mixed-replace means in terms of MIME? And even what is MIME used for? And why?
The MIME type is a description of the data returned by a request on the Internet (originally used by e-mail, and later used by many parts of the web).
Since data can take hundreds (if not thousands) of forms, both textual and binary, it helps a program to know what type of data it is dealing with, rather than trying to write code that figures it out automatically.
The program can use this data to either select a handler (jpg vs. png), or simply refuse to handle data that isn’t a type it knows how to handle, or doesn’t want to deal with (e.g. an mp3, where it is expecting xml).
This can also be used to classify data (search engines), or restrict it (in a web proxy or e-mail server).
Some examples:
For bigger lists of MIME type examples, see these links: