【发布时间】:2021-06-10 16:08:41
【问题描述】:
如何在 curl 的请求头中设置环境变量
curl --location --request POST 'test.example.com' \
--header 'Content-Type: application/json' \
--header 'access_token: "${SOME_ENV_TOKEN}"' \
--header 'Authorization: Basic Og=='
不工作。
【问题讨论】:
标签: bash curl http-headers environment-variables