Home > Common Problem > mime means

mime means

(*-*)浩
Release: 2019-08-03 11:16:28
Original
9987 people have browsed it

MIME (Multipurpose Internet Mail Extensions) multipurpose Internet mail extension type.

mime means

is the type of way that a file with a certain extension is opened by an application. When the extension When the named file is accessed, the browser will automatically use the specified application to open it.

is mostly used to specify some client-defined file names and some media file opening methods. (Recommended learning: web front-end video tutorial)

It is an Internet standard that extends the email standard to enable it to support:

Non-ASCII character text; non-text format attachments (binary, sound, image, etc.);

Message body composed of multiple parts;

Contains non-ASCII characters Header information.

This standard is defined in RFC 2045, RFC 2046, RFC 2047, RFC 2048, RFC 2049 and other RFCs.

MIME improves RFC 2822, which was transformed from RFC 822. These old standards stipulate that email standards do not allow the use of characters outside the 7-bit ASCII character set in email messages.

Because of this, some non-English character messages and non-text messages such as binary files, images, sounds, etc. cannot originally be transmitted in emails (MIME can).

MIME specifies symbolic methods for representing various data types. In addition, the MIME framework is also used in the HTTP protocol used in the World Wide Web, and the standard is extended to Internet media types.

In the earliest HTTP protocol, there was no additional data type information. All transmitted data were 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 appended to the front of the document to identify the data type.

MIME stands for Multipurpose Internet Mail Extensions. It was originally designed to attach multimedia data when sending e-mails so that the mail client can process it according to its type. However, when it is supported by the HTTP protocol, its significance becomes even more significant. It makes HTTP transfer not only ordinary text, but also rich and colorful.

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

Common MIME types (universal):

Hypertext Markup Language text.html text/html

xml document.xml text/xml

XHTML document.xhtml application/xhtml xml

Normal text.txt text/plain

RTF text.rtf application/rtf

PDF document .pdf application/pdf

The above is the detailed content of mime means. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template