curl - 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'
有人可以解释一下吗?
解决方案
推荐阅读
- tableau-api - Tableau 计算 IF 语句
- kubernetes - 工作节点无法加入 Kubernetes 中的主节点
- java - Spring Batch多线程卡住没有任何异常输出
- google-cloud-platform - 更新对象时触发云函数
- javascript - 如何通过html中内联脚本的ajax响应调用设置值?
- haskell - 简单 Haskell 函数中的中间值
- java - 从“项目外部”导入类(Gradle + Scala)
- android - Android 应用程序中 ECC 密钥的保护
- javascript - React Native - Android:在远程服务器上托管 JS 组件
- reactjs - onChange - 使用 Jest Enzyme 进行测试 - 检查?