什么是MIME类型? [英] What is a MIME type?

查看:217
本文介绍了什么是MIME类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读有关如何构建插件和这个MIME类型,在它不断得到讨论,我试图寻找到,并知道它的多用途Internet邮件扩展(MIME),但它如何没有合适的解释涉及浏览器插件在我需要了解它的构建插件提供,请简单明了的言传。这是什么?为什么插件的MIME类型?

I have been reading about how to build plug-ins and this "MIME type" keeps getting discussed in it, I have tried to look into and know that its Multipurpose Internet Mail Extensions (MIME) but no suitable explanation of how it relates to browser plug-ins as in what i need to know about it for building plug-ins is provided, please explain in clear and simple words. What it is? Why do plug-ins have a MIME type?

推荐答案

一个MIME类型是给定类型的数据的标签,这样软件就可以知道如何处理这些数据。它服务于同样的目的在互联网上的文件扩展名在Microsoft Windows做的。

A MIME type is a label for a given type of data so software can know how to handle the data. It serves the same purpose on the Internet that file extensions do on Microsoft Windows.

因此​​,如果服务器说:这是text / html的客户可以去嗯,这是一个HTML文件,我可以呈现在内部,而如果服务器说,这是应用程序/ PDF客户端即可走嗯,我需要启动福昕阅读器插件,用户安装并已注册本身作为应用程序/ PDF格式的处理程序。

So if a server says "This is text/html" the client can go "Ah, this is an HTML document, I can render that internally", while if the server says "This is application/pdf" the client can go "Ah, I need to launch the FoxIt PDF Reader plugin that the user has installed and that has registered itself as the application/pdf handler."

您会最常发现他们在HTTP消息(来描述一个HTTP服务器与响应的内容,或者是在要求张贴的数据格式)的标题,并在电子邮件标题(形容消息格式和附件)。

You'll most commonly find them in the headers of HTTP messages (to describe the content that an HTTP server is responding with or the formatting of the data that is being POSTed in a request) and in email headers (to describe the message format and attachments).

这篇关于什么是MIME类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆