内容类型的多个参数

问题描述

根据RFC链接Hypertext Transfer Protocol -- HTTP/1.1,内容类型定义为

 Content-Type   = "Content-Type" ":" media-type

媒体类型定义为

media-type     = type "/" subtype *( ";" parameter )
type           = token
subtype        = token

所以,按照这个

ContentType: application/soap+xml; charset=utf-8

是有效的。 ContentType可以有多个参数吗?例如:

ContentType: application/soap+xml; charset=utf-8; action="urn:CreateCredential"

致谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)