我正在修改 Rails 服务器以通过 POST 和 PUT 请求处理来自 iPhone 客户端的二进制 plist。据我所知,文本 plist 的内容类型是 text/plist。我希望服务器能够处理文本和二进制 plist,所以我想区分这两种形式。二进制 plist 的内容类型是什么?
最佳答案
我相信大多数二进制格式前面都是application
,所以可能是application/plist
。
参见 RFC1341 的底部.
更新
就像 Pumbaa80 提到的那样,由于 application/plist
不是标准 mime 类型,因此应该是 application/x-plist
。
在 RFC2045 中对此进行了解释:
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.
关于iphone - 二进制 plist 的 HTTP 内容类型是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3603851/