This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Running 'curl' with '-o' option failed with error "curl: (23) Failed writing body (0 != 720)"


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

Attachment: cygcheck.out
Description: Binary data

--
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]