关于content-type请求头的说明

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


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

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

posted @ 2018-10-31 19:27  -Learning-  阅读(256)  评论(0编辑  收藏  举报