Content-Type是什么意思?

Content-Type是什么意思?

2018年09月17日 14:22:50 谭超zhong 阅读数 976

 版权声明:tanchaozhong.blog.csdn.net谭超zhong个人原创博文禁止匿名转载与抄袭!https://blog.csdn.net/weixin_42204641/article/details/82736746
 

Content-Type描述的只是发送端;
发送端既可以是服务器也可以是客户端;
Content-Type代表发送端发送的实体数据的数据类型。
比如:Content-Type:text/html;
代表发送端发送的数据格式是html

post请求肯定要发送数据包;
因此对数据包的Type有专门的限定:
Content-Type只能是

application/x-www-form-urlencoded,
application/json
multipart/form-data
text/plain

其他的均不常见。

posted @ 2019-08-09 16:31  grj001  阅读(92)  评论(0编辑  收藏  举报