Follow redirect in httpie

Without the `--follow` the answer looks successful but empty.
This commit is contained in:
dylan 2020-12-21 17:05:54 -07:00 committed by GitHub
parent 8351747d98
commit 386580aebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,7 @@ We can now access our API, both from the command-line, using tools like `curl`..
Or using the [httpie][httpie], command line tool... Or using the [httpie][httpie], command line tool...
bash: http -a admin:password123 http://127.0.0.1:8000/users/ bash: http --follow -a admin:password123 http://127.0.0.1:8000/users/
HTTP/1.1 200 OK HTTP/1.1 200 OK
... ...