Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic Content-Type

The Content-Type header is used as specified in [RFC2616]. However, because this document describes messages for the application/atom+xml (section, application/json (section, application/json;odata=verbose (section, application/xml, text/plain, and text/xml formats, a data service client or server SHOULD only use HTTP messages with a Content-Type header value as shown in the ABNF grammar that follows and is specified in [RFC5234]. The exception to the above rule is when messages are used that represent a Media Resource [RFC5023] or the raw value of an entity's property (see section

Content-Type     = "Content-Type:"
                   / "application/atom+xml;type=entry"
                   / "application/atom+xml;type=feed"
                   / "application/json;odata=verbose"
                   / "application/json"
                   / "application/xml"
                   / "text/plain"
                   / "text/xml"
                   / "octet/stream")
                   ";" <Remainder of rule is per the Content-Type rule in [RFC2616]>

Listing: Content-Type Header ABNF Grammar

Example: Content-Type: application/atom+xml;charset=UTF-8
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.