Tweak auth docs

This commit is contained in:
Jakub Roztocil 2022-01-23 17:24:29 +01:00
parent 217cf8ddae
commit ba0c1ab258

View File

@ -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
```