cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl: (23) Failed writing body (1799 != 9373)

From: Hongyi Zhao <hongyi.zhao_at_gmail.com>
Date: Sat, 24 Oct 2015 11:33:31 +0800

2015-10-23 21:18 GMT+08:00 Daniel Stenberg <daniel_at_haxx.se>:
> 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.

Thanks.

>
> --
>
> / 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.html

-- 
Hongyi Zhao <hongyi.zhao_at_gmail.com>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493
-------------------------------------------------------------------
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.html
Received on 2015-10-24