httpie 取代 curl

接口测试有人喜欢postman(for windows or mac)

如果长期用linux工作,可能更喜欢命令的方式,比如curl
最近深入了解了下django-rest-framwork,他们推荐了一个工具:httpie

安装:

python2.x

pip install httpie

 python3.x

python -m pip install httpie

然后直接:

http POST/PUT/DELETE http://xxxx/xxxx data

一张图说明区别,如下:

httpie.png

原文地址:https://www.cnblogs.com/Tommy-Yu/p/6096990.html