Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the HTTP content type for binary plist?

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?

like image 951
Chris Garrett Avatar asked Aug 30 '10 20:08

Chris Garrett


People also ask

What is the syntax of the HTTP content-type?

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.

What are binarymediatypes and contenthandling?

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.

What is the plist file extension?

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.

What is the Content-Type header?

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.


1 Answers

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.

like image 173
joshperry Avatar answered Nov 08 '22 18:11

joshperry