curl-users
Re: curl: (23) Failed writing body (1799 != 9373)
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 23 Oct 2015 15:18:18 +0200 (CEST)
Date: Fri, 23 Oct 2015 15:18:18 +0200 (CEST)
On Fri, 23 Oct 2015, Hongyi Zhao wrote:
> $ curl http://130.158.6.81/api/iphone/ | head -1
> curl: (23) Failed writing body (1799 != 9373)
...
> Any hints?
I think it is quite clear. It only tells you that it got its output cut off.
It was about to store 9373 bytes but only 1799 bytes were acknowledged. That
of course happened because 'head' cut off the pipe at that point.
You can add -s to make curl be quiet about it.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-10-23