Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1186723
  • 博文数量: 233
  • 博客积分: 6270
  • 博客等级: 准将
  • 技术积分: 1798
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-26 08:32
文章分类

全部博文(233)

文章存档

2011年(31)

2010年(202)

我的朋友

分类: 系统运维

2010-05-24 23:05:02

互联网媒体类型(Internet media type),原名叫“Type MIME”或“MIME”或 在头信息中各种协议之后的内容种类(Content-type),
一个Type MIME至少包括两个部分:一个类型和一个子类型和一个或多个其他需要的参数。比如,一个子类型 text 有一个可选参数 charset 用来表明字符编码;或者一个multipart类型的子类型定义了一个选项boundary。
那些类型和子类型都以“x-”开头的是不标准的,他们不能被存储如果应用IANA。那些子类型以“vnd”开头的是商家信息

IANA维护着一个媒体类型和字符编码的记录列表, 详情请参看""

一些比较常用的在以下列表当中:
* Type application: Multipurpose files
  o application/EDI-X12: EDI X12 data; Defined in RFC 1767
  o application/EDIFACT: EDI EDIFACT data; Defined in RFC 1767
  o application/javascript: JavaScript; Defined in RFC 4329
  o application/octet-stream: Arbitrary byte stream. This is thought of as the "default" media type used by several operating systems, often used to identify executable files, files of unknown type, or files that should be downloaded in protocols that do not provide a separate "content disposition" header. RFC 2046 specifies this as the fallback for unrecognized subtypes of other types.
  o application/ogg: Ogg, a multimedia bitstream container format; Defined in RFC 3534
  o application/xhtml+xml: XHTML; Defined by RFC 3236
  o application/x-shockwave-flash: Adobe Flash files; Documented in Adobe TechNote tn_4151 and Adobe TechNote tn_16509
  o application/json: JavaScript Object Notation JSON; Defined in RFC 4627
* Type audio: Audio
  o audio/mpeg: MP3 or other MPEG audio; Defined in RFC 3003
  o audio/x-ms-wma: Windows Media Audio; Documented in Microsoft KB 288102
  o audio/vnd.rn-realaudio: RealAudio; Documented in RealPlayer Customer Support Answer 2559
  o audio/x-wav: WAV audio
* Type example
* Type image
  o image/gif: GIF image; Defined in RFC 2045 and RFC 2046
  o image/jpeg: JPEG JFIF image; Defined in RFC 2045 and RFC 2046
  o image/png: Portable Network Graphics; Registered[4]
  o image/tiff: Tag Image File Format; Defined in RFC 3302
  o image/vnd.microsoft.icon: ICO image; Registered[5]
* Type message
* Type model: 3D models
* Type multipart: Archives and other objects made of more than one part
         o multipart/mixed: MIME E-mail; Defined in RFC 2045 and RFC 2046
         o multipart/alternative: MIME E-mail; Defined in RFC 2045 and RFC 2046
         o multipart/related: MIME E-mail; Defined in RFC 2387 and used by MHTML (HTML mail)
* Type text: Human-readable text and source code
         o text/css: Cascading Style Sheets; Defined in RFC 2318
         o text/html: HTML; Defined in RFC 2854
         o text/javascript (Obsolete): JavaScript; Defined in and obsoleted by RFC 4329 in order to discourage its usage in favor of application/javascript
         o text/plain: Textual data; Defined in RFC 2046 and RFC 3676
         o text/xml: Extensible Markup Language; Defined in RFC 3023
* Type video: Video
         o video/mpeg: MPEG-1 video with multiplexed audio; Defined in RFC 2045 and RFC 2046
         o video/mp4: MP4 video; Defined in RFC 4337
         o video/quicktime: QuickTime video; Registered[6]
         o video/x-ms-wmv: Windows Media Video; Documented in Microsoft KB 288102

阅读(468) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~