内容类型多参数
Content-type Multiple Parameters
根据 RFC link 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"
此致
当前规范是 RFC 7231,而不是 RFC 2616。
但是是的:
*( ";" parameter )
表示可以有多个参数
根据 RFC link 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"
此致
当前规范是 RFC 7231,而不是 RFC 2616。
但是是的:
*( ";" parameter )
表示可以有多个参数