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

Song2172 次浏览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请求

更多相关好文

    公告提示

    本站主要用于学习交流Laravel技术,分享Laravel优秀案例;同时非常欢迎大家投稿哦!如果有招聘信息也可以联系我我帮忙发布哦!