代码改变世界

python requests json/data/params 参数的区别

2020-11-20 16:02  ZealouSnesS  阅读(198)  评论(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.