mirror of
https://github.com/httpie/cli.git
synced 2025-02-13 08:09:17 +01:00
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
|
||||
|
||||
If you omit the password part of `--auth, -a`, HTTPie securely prompts you for it:
|
||||
|
||||
```bash
|
||||
$ 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
|
||||
|
||||
To send an empty password without being prompted for it, include a trailing colon in the credentials:
|
||||
|
||||
```bash
|
||||
$ http -a username: pie.dev/headers
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user