delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/06/21/03:37:56

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=qnhewN1
yGj1wjD6WxtYVtXVHmqZ2Eg+1Mqqi7gSBRg/ShXS5A3vQgrXsrOxWaV6Hd82Ext2
J/KxkDC9Ekhkhdpey0oabAWWxoAldLCoisB7ke5N1j85O5QOpe2E0s5GAm/LIBEA
e61x9A3FERe6/hPbFrn5xm5OlK3DZZ1qOpXk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; s=default; bh=stxbf5M2q9ovK
epEjSJa00LE6ME=; b=gTDsiN6WGyhTvuMLW1eBFHYumrw3gYP/DkvCuxjw49k06
7ozxnTBMiD4yFdp8uKREP4rDPaXeJITnRD8NdvuPdiSSx8+QexBb/sISbJSpjTvg
n/DudK4KbgQdb2OKS9yV+TSvR6wJ1fdRsAM4OTfcQEpPWJONj4ts3FHegyqYLQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Received:ed0a, substantial, Scott, scott
X-HELO: mail-qk1-f175.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=5MT/K0K2XDAcyZgWqeF7yWRKrgalr635TvGyfZ87AyU=; b=vd1vmYVTY8nVCQJoejF5M/rUMuOm4vrUJqI98/X5LLSx+g6P3X/kHDSdzF/J/JDOTY ZERsYCHpmKBTsT6+EKWX4ToNPok5Thaakd8l4kd6bpLnz4cfnm9+m7NqKe3Qa7vTn8wL XDDOXClRYzwTJ0gNFIFfevc+c1ry5mgiZ1jSclRpSFwlmxDRthslpFoQ1RHILwGgFblA eAzA4yPfa0j15ZaewbYHGth+QXdNujVy6go9v1dsI4evWGqzSLJ8LTPcnfipgvuPqslv tr/ZLPnwh+4gWC7eq6Iekku60mKco+r5DrF0kUOAb62UFFDokJF+VgSxq3zxYNY8LS0e JTVA==
MIME-Version: 1.0
References: <20190621072718 DOT 86F8146400A4 AT webmail DOT sinamail DOT sina DOT com DOT cn>
In-Reply-To: <20190621072718.86F8146400A4@webmail.sinamail.sina.com.cn>
From: Csaba Raduly <rcsaba AT gmail DOT com>
Date: Fri, 21 Jun 2019 09:36:45 +0200
Message-ID: <CAEhDDbDGw4y0RyYs-b-2fSWwVW1WzeV34nnDkAxddhwpEojC6w@mail.gmail.com>
Subject: Re: Running 'curl' with '-o' option failed with error "curl: (23) Failed writing body (0 != 720)"
To: mahao_boy AT sina DOT cn, cygwin list <cygwin AT cygwin DOT com>

Hi,

On Fri, Jun 21, 2019 at 9:28 AM Ma Hao <mahao_boy AT sina DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019