Sun Java System Messaging Server 6 2005Q4 管理指南

Content-type 标题

MIME Content-Type 标题说明主体部分的内容。以下显示了 Content-Type 标题的格式(带有示例):

Content-type: type/ subtype; parameter1=value; parameter2=value...

type 说明主体部分内容的类型。类型包括 TextMultipartMessageApplicationImage AudioVideo 等。

subtype 进一步说明内容类型。每个 Content-type 都有自己的一组子类型。例如:text/plainapplication/octet-streamimage/jpeg。MIME 邮件的内容子类型是由 IANA(Internet 编号授权机构)指定和列出的。http://www.iana.org/assignments/media-types 中有一份列表。

parameter 特定于各个 Content-type/subtype 对。例如,以下显示了 charsetname 参数:


Content-type: text/plain; charset=us-ascii
Content-type: application/msword; name=temp.doc

charset 参数为文本邮件指定字符集。name 参数提供将数据写入文件时建议使用的文件名。


注 –

Content-Type 值、subtypes 和参数名称都不区分大小写。