forked from extern/httpie-cli
Tweak auth docs
This commit is contained in:
parent
217cf8ddae
commit
ba0c1ab258
@ -1247,12 +1247,18 @@ https -A bearer -a token pie.dev/bearer
|
|||||||
|
|
||||||
### Password prompt
|
### Password prompt
|
||||||
|
|
||||||
|
If you omit the password part of `--auth, -a`, HTTPie securely prompts you for it:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ http -a username pie.dev/basic-auth/username/password
|
$ http -a username pie.dev/basic-auth/username/password
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Please note that when you use [`--session`](#sessions), prompted passwords are persisted in sessions files .
|
||||||
|
|
||||||
### Empty password
|
### Empty password
|
||||||
|
|
||||||
|
To send an empty password without being prompted for it, include a trailing colon in the credentials:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ http -a username: pie.dev/headers
|
$ http -a username: pie.dev/headers
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user