- 论坛徽章:
- 0
|
协议上说
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.
可是还是看不大明白,这个字段在返回的数据里面到底是被怎么编码的?
由那位能提供一下例程给看看吗?
相关的文档在网上也看了些,一样的一头雾水啊! |
|