【问题标题】:digest authentication using curl [closed]使用 curl 进行摘要身份验证 [关闭]
【发布时间】:2022-01-18 06:45:46
【问题描述】:

身份验证是摘要
当我在命令行上执行以下命令时,它执行得很好,没有--digest flag

curl -s -u user:password example.com/file_containing_text

但它在 bash 文件中不起作用。 它不会像在终端中那样打印结果

user="myusername"
pass="mypassword"
result=$(curl -s -u $user:$pass examaple.com/file_containing_text)
echo $result

【问题讨论】:

    标签: bash authentication curl digest-authentication


    【解决方案1】:

    我的密码不正确

    【讨论】:

    • 这并没有提供问题的答案。要批评或要求作者澄清,请在他们的帖子下方留下评论。 - From Review
    猜你喜欢
    • 2013-03-11
    • 1970-01-01
    • 2011-05-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-11
    相关资源
    最近更新 更多