Content-type Multiple Parameters

Viewed 642

As per the RFC link Hypertext Transfer Protocol -- HTTP/1.1content-type is defined as

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

Media-type is defined as

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

So, as per this

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

is a valid. Can a ContentType have multiple parameters? For example:

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

Regards

1 Answers

The current spec is RFC 7231, not RFC 2616.

But yes:

*( ";" parameter )

indicates that there can be multiple parameters.

Related