1.Accept belongs to the request header, and Content-type belongs to the entity header.
The HTTP header is divided into generic headers, request headers, response headers, and entity headers.
HTTP header structure for requester: Generic header | request Header | entity header
HTTP header structure of the responder: generic header | response Header | entity header
2.Accept represents the type of data that the sending side (client) wants to accept.
For example: Accept:text/xml;
Represents the data type that the client wants to accept as XML type
Content-type represents the data type of the entity data sent by the sending side (client | server).
For example: content-type:text/html;
The data format sent on behalf of the sending side is HTML.
3. Combination of the two
Accept:text/xml;
Content-type:text/html
This means that the data type that you want to accept is in XML format, and the data format for the data sent by this request is HTML.
Reference:
http://blog.csdn.net/muzizongheng/article/details/46795243 (the above content is transferred from this article)
The difference between HTTP header accept and Content-type (RPM)