httpie 工具学习

Httpie 工具学习笔记

​ 1.安装

Linux

#Debian, Ubuntu, etc.
$ apt-get install httpie

#Fedora
$ yum install httpie

#Arch Linux
$pacam -S httpie

Windows

#Make sure we have an up-to-date version of pip and setuptools
$pip install --upgrade pip setuptools
$pip install --upgrade httpie
  1. 使用方法

    语法:

    $ http [flags] [METHOD] URL [ITEM[ITEM]]
    
    usage: 
    $ http [--json] [--form] [--pretty {all,colors,format,none}]
           [--style STYLE] [--print WHAT] [--verbose] [--headers] [--body]
           [--stream] [--output FILE] [--download] [--continue]
           [--session SESSION_NAME_OR_PATH | --session-read-only SESSION_NAME_OR_PATH]
           [--auth USER[:PASS]] [--auth-type {basic,digest}]
           [--proxy PROTOCOL:PROXY_URL] [--follow] [--verify VERIFY]
           [--cert CERT] [--cert-key CERT_KEY] [--timeout SECONDS]
           [--check-status] [--ignore-stdin] [--help] [--version]
           [--traceback] [--debug]
           [METHOD] URL [REQUEST_ITEM [REQUEST_ITEM ...]]
    
    

    3.使用

posted @ 2019-12-03 14:41  ganshuoos  阅读(126)  评论(0编辑  收藏  举报