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

Content-type 標頭

MIME Content-Type 標頭說明內文部分的內容。Content-Type 標頭格式舉例如下:

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

type 說明內文部分的內容類型。type 範例有 TextMultipartMessageApplicationImageAudioVideo

subtype 進一步說明內容類型。每個 Content-type 各自擁有一組 subtypes。例如:text/plainapplication/octet-streamimage/jpeg。MIME 郵件的內容子類型由 IANA (網際網路指定號碼授權中心) 指定並列出。清單位於 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 和參數名稱都不區分大小寫。