Cheatsheet for Httpie

less than 1 minute read

Httpie is a fantastic command line tool that help you do more http interations using the command prompt, similar to curl, but much much better.

Make http GET with authorization header

http -v https://api.box.com/2.0/files/12345678 'Authorization:Bearer <access_token>'

Download top 50 songs from Netease Music

curl 'http://music.163.com/artist?id=973004' \
| pup 'ul.f-hide a json{}' \
| jshon -a -e href \
| awk -F\t '{system("you-get \"http://music.163.com/"$1"\"")}'

Updated:

Comments