This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Running 'curl' with '-o' option failed with error "curl: (23) Failed writing body (0 != 720)"
- From: Csaba Raduly <rcsaba at gmail dot com>
- To: mahao_boy at sina dot cn, cygwin list <cygwin at cygwin dot com>
- Date: Fri, 21 Jun 2019 09:36:45 +0200
- Subject: Re: Running 'curl' with '-o' option failed with error "curl: (23) Failed writing body (0 != 720)"
- References: <20190621072718.86F8146400A4@webmail.sinamail.sina.com.cn>
Hi,
On Fri, Jun 21, 2019 at 9:28 AM Ma Hao <mahao_boy@sina.cn> wrote:
>
> 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/
You told curl to write the download to a file named /home/cdmahao/
Unfortunately, there is already a directory named /home/cdmahao/, and
curl can't write a file to a directory.
You need to give the name of a file to -o
$ curl https://codeload.github.com/spring-projects/spring-framework/zip/master
-o /home/cdmahao/master.zip
curl works differently from wget. wget invents a filename based on the
URL. curl does not do that.
Csaba
--
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)
--
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