安装

    1. <tool> install httpie
    2. brew install httpie
    3. yum install httpie
    4. apt-get install httpie

    使用

    1. http httpie.org
    2. # HTTP 方法
    3. http PUT xxx.xx
    4. http POST xxx.xx
    5. http DELETE xxx.xx
    6. # -v 详情
    7. http -v example.org
    8. # 自定义header
    9. http localhost:8000 Host:example.com
    10. # query
    11. http www.google.com search=='HTTPie logo'
    12. # -f 表单
    13. http -f POST example.org hello=World
    14. # < file.json 上传文件
    15. http example.org < file.json