用python+requests做接口测试,有时post请求响应出现msg=TOKEN_ERR问题。
这是因为请求的headers中Content-Type没有设置正确,应该设置为application/json。
用python+requests做接口测试,有时post请求响应出现msg=TOKEN_ERR问题。
这是因为请求的headers中Content-Type没有设置正确,应该设置为application/json。
本文标题:接口测试响应TOKEN_ERR原因
本文链接:https://www.haomeiwen.com/subject/itbgnftx.html
网友评论