httpie: add more 0.9.9 options
This commit is contained in:
parent
2e90144760
commit
7fbe70abcf
21
httpie.md
21
httpie.md
|
@ -9,7 +9,7 @@ updated: 2017-09-04
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ http POST example.com/posts/3 \
|
$ http POST http://example.com/posts/3 \
|
||||||
Origin:example.com \ # : HTTP headers
|
Origin:example.com \ # : HTTP headers
|
||||||
name="John Doe" \ # = string
|
name="John Doe" \ # = string
|
||||||
q=="search" \ # == URL parameters (?q=search)
|
q=="search" \ # == URL parameters (?q=search)
|
||||||
|
@ -34,7 +34,10 @@ Print options:
|
||||||
{: .-setup}
|
{: .-setup}
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
-v, --verbose # same as --print=HhBb
|
-v, --verbose # same as --print=HhBb --all
|
||||||
|
-h, --headers # same as --print=h
|
||||||
|
-b, --body # same as --print=b
|
||||||
|
--all # print intermediate requests
|
||||||
--print=HhBb # H: request headers
|
--print=HhBb # H: request headers
|
||||||
# B: request body
|
# B: request body
|
||||||
# h: response headers
|
# h: response headers
|
||||||
|
@ -51,18 +54,26 @@ Authentication:
|
||||||
--auth-type digest
|
--auth-type digest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Session:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
--session NAME # store auth and cookies
|
||||||
|
--session-read-only NAME
|
||||||
|
```
|
||||||
|
|
||||||
Downloading:
|
Downloading:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
--download
|
-d, --download # like wget
|
||||||
--continue
|
-c, --continue
|
||||||
-o, --output FILE
|
-o, --output FILE
|
||||||
```
|
```
|
||||||
|
|
||||||
Others:
|
Others:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
--follow # follow redirects
|
-F, --follow # follow redirects
|
||||||
|
--max-redirects N # maximum for --follow
|
||||||
--timeout SECONDS
|
--timeout SECONDS
|
||||||
--verify no # skip SSL verification
|
--verify no # skip SSL verification
|
||||||
--proxy http:http://foo.bar:3128
|
--proxy http:http://foo.bar:3128
|
||||||
|
|
Loading…
Reference in New Issue