What is the HTTP content type for binary plist?

Chris Garrett picture Chris Garrett · Aug 30, 2010 · Viewed 9.1k times · Source

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?

Answer

joshperry picture joshperry · Aug 30, 2010

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.