I am modifying a rails server to handle binary plist from an iPhone client via POST and PUT requests. The content type for text plist is text/plist, as far as I can tell. I would like the server to handle both text and binary plists, so I would like to distinguish between the two forms. What is the content type for binary plist?
Syntax: Content-Type: text/html; charset=UTF-8 Content-Type: multipart/form-data; boundary=something. Directives: There are three directives in the HTTP headers Content-type. media type: It holds the MIME (Multipurpose Internet Mail Extensions) type of the data. charset: It holds the character encoding standard.
Your API's binaryMediaTypes configuration is a list of content types that your API treats as binary data. Alternatively, you can set the contentHandling properties on the Integration and the IntegrationResponse resources. The contentHandling value can be CONVERT_TO_BINARY, CONVERT_TO_TEXT, or undefined.
PLIST (stands for Property List) is an extension used to save preferences of applications. These files are formatted in XML and contain properties and configuration settings for various programs.
Last Updated : 29 Jul, 2021 The Content-Type header is used to indicate the media type of the resource. The media type is a string sent along with the file indicating the format of the file. For example, for image file its media type will be like image/png or image/jpg, etc.
I believe that most binary formats are preceded by application
so maybe application/plist
.
See the bottom of RFC1341.
Update
Like Pumbaa80 mentioned, since application/plist
is not a standard mime-type it should be application/x-plist
.
In RFC2045 it explains this:
In the future, more top-level types may be defined only by a standards-track extension to this standard. If another top-level type is to be used for any reason, it must be given a name starting with "X-" to indicate its non-standard status and to avoid a potential conflict with a future official name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With