python requests json/data/params 参数的区别
2020-11-20 16:02 ZealouSnesS 阅读(209) 评论(0) 编辑 收藏 举报To answer my own question, it appears my two examples above do the same thing and that using the json
parameter does indeed set the content-type
in the headers to application/json
. In my first example above using the data
parameter, the content-type
in the headers would need to be set manually.