請問HTTP协议的ContentType方法具体有中哪些属性? (100分)

  • 主题发起人 主题发起人 duanyu
  • 开始时间 开始时间
D

duanyu

Unregistered / Unconfirmed
GUEST, unregistred user!
請問HTTP协议的ContentType方法具体有中哪些属性?
 
没有高手知道么?
 
没有高手知道么?
 
我知道一点
ContentType: text/html
 
查一下mime吧
 
Windows中,
在文件夹选项设置中,文件类型这一页中你机器上的文件类型的Mime类型都可以找到。
也就是ContentType了。
 
property ContentType: string;

Description

ContentType is a String property that specifies the MIME media type for the message. The purpose of ContentType is to describe the data contained in the body to allow a user agent to determine how to present the data. ContentType contains information about the media type. subtype, and auxillary information in attribute=value notation. Some common values for the media type and subtype include:

text/plain
text/html
text/xml
text/enhanced
image/jpeg
image/gif
audio/basic
audio/au
video/mpeg
application/octet-stream
application/postscript
application/ms-word
application/ms-excel
application/rtf
multipart/mixed
multipart/alternative
multipart/parallel

multipart/related
message/rfc822
message/external-body

Use ContentTransferEncoding to identify the encoding scheme for the message.
 
我帮助你ding!
 
后退
顶部