Running 'curl' with '-o' option failed with error "curl: (23) Failed writing body (0 != 720)"
Ma Hao
mahao_boy@sina.cn
Fri Jun 21 07:27:00 GMT 2019
Hi,
I was running into the problem when I tried to download spring:
$ curl https://codeload.github.com/spring-projects/spring-framework/zip/master -o /home/cdmahao/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /home/cdmahao/: No such file or directory
0 18.6M 0 720 0 0 755 0 7:10:44 --:--:-- 7:10:44 755
curl: (23) Failed writing body (0 != 720)
But I can do the download via 'curl xx > xx'
$ curl https://codeload.github.com/spring-projects/spring-framework/zip/master > test.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 18.6M 100 18.6M 0 0 433k 0 0:00:43 0:00:43 --:--:-- 468k
Here is the curl version:
$ curl --version
curl 7.61.0 (x86_64-pc-win32) libcurl/7.61.0 WinSSL zlib/1.2.11
Release-Date: 2018-07-11
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz
Cygwin info can be found in attachment;
Please help on this.
--------------------------------
Ma Hao
BR
email: mahao_boy@sina.cn
Phone: +86(0)13981759428
Location: Tianfu Software Park, Tianfu avenue, High Tech Zone, Chengdu, Sichuan Province, China
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 408355 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190621/05f4d682/attachment.obj>
-------------- next part --------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list