安装
<tool> install httpie
brew install httpie
yum install httpie
apt-get install httpie
使用
http httpie.org
# HTTP 方法
http PUT xxx.xx
http POST xxx.xx
http DELETE xxx.xx
# -v 详情
http -v example.org
# 自定义header
http localhost:8000 Host:example.com
# query
http www.google.com search=='HTTPie logo'
# -f 表单
http -f POST example.org hello=World
# < file.json 上传文件
http example.org < file.json