关于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请求头的作用,用于标记请求体数据的格式,如:


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

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

猜你喜欢

转载自www.cnblogs.com/mengbin0546/p/10987362.html