MIME Types


Reference: Lincoln D. Stein, How to Set Up and Maintain a WWW Site, Addison Wesley, 1995, pp. 42-45.


MIME: Definition, Examples

Definition: MIME means Multipurpose Internet Mail Extensions

MIME was devised for Internet Mail (see RFCs 822 and 1521), to allow a mail message to carry something other than a plain text message. The use of MIME in HTTP differs in several ways from Internet Mail, "to allow greater freedom in the use of new media types, to make date comparisons easier, and to acknowledge the practice of some early HTTP servers and clients." [from HTTP/1.1 spec]

The format of a MIME type (according to the HTTP/1.1 spec) is

type/subtype

"Media-type values are registered with the Internet Assigned Number Authority (IANA). The media type registration process is outlined in RFC 1590 [17]." [from HTTP/1.1 spec]

Internet media types are registered with a canonical form. Thus any client can handle a message from any server in the world.

Examples:
Type Description
text/htmlData is HTML
text/plainData is plain text
text/richtextData is rich text format, meeting RFC1523
text/tab-separated-valuesData is tab separated text
video/mpegData is MPEG video
video/quicktimeData is Quicktime movie
audio/x-wavData is Microsoft "wav" format audio file
image/gifData is GIF image
image/tiffData is TIFF image
application/mswordData is Microsoft Word file
application/rtfData is Microsoft rich text format
aplication/zipData is compressed with PKZip
message/rfc822E-mail message, Internet format
multipart/mixedcontains multiple MIME types


Rules To Set MIME Type

How MIME type is set:

Helper Applications for Web Clients

Web browsers can present only certain MIME types; for rest, they either

In Netscape 3.0, select the Options menu, then General preferences... to display the following screen:


Return to CS6204 home page.

Last modified on 10 September 1996.

Send comments to abrams@vt.edu.
[This is http://ei.cs.vt.edu/~wwwbtb/fall.96/ClassNotes/Protocols/MIME.html.]