相关疑难解决方法(0)

为什么CURL返回和错误(23)写入正文失败?

它作为一个工具正常工作:

curl "someURL"
curl -o - "someURL"
Run Code Online (Sandbox Code Playgroud)

但它不适用于管道:

curl "someURL" | tr -d '\n'
curl -o - "someURL" | tr -d '\n'
Run Code Online (Sandbox Code Playgroud)

它返回:

(23) Failed writing body
Run Code Online (Sandbox Code Playgroud)

卷曲输出管道有什么问题?如何缓冲整个curl输出然后处理它?

macos bash curl pipe osx-lion

115
推荐指数
11
解决办法
18万
查看次数

标签 统计

bash ×1

curl ×1

macos ×1

osx-lion ×1

pipe ×1