wsp的content type编码问题
协议上说
8.4.2.24 Content type field
The following rules are used to encode content type values. The short form of the Content-type-value MUST only be
used when the well-known media is in the range of 0-127 or a text string. In all other cases the general form MUST be
used.
Content-type-value = Constrained-media | Content-general-form
Content-general-form = Value-length Media-type
Media-type = (Well-known-media | Extension-Media) *(Parameter)
Note that the value of the content type field must be placed in the PDU Content-Type field and therefore the header
itself shall not be transmitted. Similarly on reception, the value in the PDU Content Type field must be passed to the
application as a Content-Type header.
可是还是看不大明白,这个字段在返回的数据里面到底是被怎么编码的?
由那位能提供一下例程给看看吗?
相关的文档在网上也看了些,一样的一头雾水啊!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有没有头绪??