httpie learning tool

Httpie tool for learning notes

1. Install

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. Instructions

    grammar:

    $ 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. Use

Guess you like

Origin www.cnblogs.com/ganshuoos/p/11976670.html