Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between mediatype, contenttype and mimetype?

Is there a difference between mimetype, contenttype and mediatype? (Java's JAX-RS MediaType).

From the wikipedia article i gathered that it's only a content-type in the context of e.g. HTTP requests as a field in a request's header: So are these just synonyms or are there any actual semantic differences between the different terms?

like image 263
fasseg Avatar asked Feb 13 '12 09:02

fasseg


People also ask

What is the meaning of MIME type?

A MIME type (now properly called "media type", but also sometimes "content type") is a string sent along with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled audio/ogg , or an image file image/png ).

What is MIME type of a file?

A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

What is the difference between MIME type and media type?

(Internet) Media Type is the proper technical term. Content-Type is the name of the HTTP header field used to specify the media type. MIME Type is the former name for Media Type.


2 Answers

(Internet) Media Type is the proper technical term.

Content-Type is the name of the HTTP header field used to specify the media type.

MIME Type is the former name for Media Type.

like image 162
Julian Reschke Avatar answered Oct 19 '22 03:10

Julian Reschke


Content-Type is an HTTP message header and its value is (generally) a MIME Type.

JAX-RS MediaType seems to be a Java rewrite for common MIME Types.

like image 30
supertopi Avatar answered Oct 19 '22 03:10

supertopi