关于content-type请求头的说明

Posted mengbin0546

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于content-type请求头的说明相关的知识,希望对你有一定的参考价值。

https://www.cnblogs.com/LearningOnline/p/9885318.html

 

 

Content-Type请求头的作用,用于标记请求体数据的格式,如:


1. Content-Type:application/x-www-form-urlencoded
请求体:b‘pwd=123&user=root‘

2. Content-Type:application/json
请求体:"pwd": 123, "user": "root"

 

 
 

以上是关于关于content-type请求头的说明的主要内容,如果未能解决你的问题,请参考以下文章