You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Implement Bearer Auth (#1216)
This commit is contained in:
+10
-4
@@ -1003,10 +1003,10 @@ the [sessions](#sessions) feature.
|
||||
https -A bearer -a token pie.dev/bearer
|
||||
```
|
||||
|
||||
### Empty password
|
||||
|
||||
```bash
|
||||
$ http -a username: pie.dev/headers
|
||||
### Password prompt
|
||||
|
||||
```bash
|
||||
$ http -a username pie.dev/basic-auth/username/password
|
||||
```
|
||||
|
||||
### Empty password
|
||||
@@ -1020,6 +1020,12 @@ $ http -a username:password pie.dev/basic-auth/username/password
|
||||
Authentication information from your `~/.netrc` file is by default honored as well.
|
||||
|
||||
For example:
|
||||
|
||||
```bash
|
||||
$ cat ~/.netrc
|
||||
machine pie.dev
|
||||
login httpie
|
||||
password test
|
||||
```
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user