curl

download file by curl
curl -O https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2
-O 使ok
download and unarchive tar.gz
curl -L <URL> | tar -zxvf -
-L
-C /path

curl json

json
curl -XPOST http://127.0.0.1:3000 \
-d @- <<EOS
{
"query": {
"hoge": 1,
"fuga": "fuga",
"piyo": ${piyo_number}
}
}
EOS

Bearer
curl -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
localhost:8080/api/v1/login

Pre-installed curl uses LibreSSL
If you want to use latest curl, install via homebrew

TLS

curl --resolve