首页 > 解决方案 > CURL7.76.0 curl:未知--写出变量:'errormsg'

问题描述

卷曲版本:7.76.0
操作系统:MacOS

文件说:

-w, --write-out <format>

errormsg错误消息。(在 7.75.0 中添加) exitcode
转移的数字退出代码。(在 7.75.0 中添加)
onerror剩下的输出仅在传输返回非零错误时显示(在 7.75.0 中添加)

但在终端内使用它们:

curl -s -w "%{errormsg}\n%{exitcode}\n%{onerror}\n" "https://api.github.com/users/lambda" >> log.txt

我正进入(状态:

curl:未知--write-out 变量:'errormsg'
curl:未知--write-out 变量:'exitcode' curl:未知--write
-out 变量:'onerror'

有人可以解释一下吗?

标签: curl

解决方案


推荐阅读