使用Httpbin测试接口,返回请求参数

Song1495 次浏览0个评论2022年08月08日

httpbin用于回显http请求参数,对于api调试比较有帮助;偶尔调试接口或者学习,直接使用它即可。

官网地址:www.httpbin.org

各接口测试:

requests.get("http://httpbin.org/get") #GET请求
requests.post("http://httpbin.org/post") #POST请求
requests.put("http://httpbin.org/put") #PUT请求
requests.delete("http://httpbin.org/delete") #DELETE请求
requests.head("http://httpbin.org/get") #HEAD请求
requests.options("http://httpbin.org/get") #OPTIONS请求

更多相关好文