摘要: requests.post方法 requests.post作用 实现使用post方法发送http请求,用于向服务器提交资源 requests.post的场合 根据接口需求确定使用post方法还是其它方法 登陆一般使用post因为安全,get也能但是不安全 访问某某主页使用GET 最简单的判断根据需求 阅读全文
posted @ 2021-11-03 20:29 暄总-tester 阅读(486) 评论(0) 推荐(0)
摘要: requests.get方法 requests.get的作用 用于实现使用get方法发送http请求,get方法主要是用来获取资源 根据接口需求来确定是不是使用get方法 requests.get如何使用 res=requests.get(url,params,headers,auth,cookie 阅读全文
posted @ 2021-11-03 15:58 暄总-tester 阅读(640) 评论(0) 推荐(0)
摘要: Requests库介绍 如果想用python做接口测试,我们首先有不得不了解和学习的模块。它就是第三方模块:Requests。 虽然Python内置的urllib模块,用于访问网络资源。但是,它用起来比较麻烦,而且,缺少很多实用的高级功能。更好的方案是使用requests。 它是一个Python第三 阅读全文
posted @ 2021-11-03 14:03 暄总-tester 阅读(257) 评论(0) 推荐(0)