开发者

What is the HTTP content type for binary plist?

开发者 https://www.devze.com 2023-01-14 09:52 出处:网络
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 hand

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 bina开发者_C百科ry plists, so I would like to distinguish between the two forms. What is the content type for binary plist?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号