Re: using curl to download a file
Date: Mon, 14 Sep 2020 19:00:04 +0200
My personal favorite is to use uppercase O instead of the lowercase one.
The command would like like this then:
curl -L -O
https://bitbucket.org/claudio_ortega/soundbridge/downloads/jre-8u172-macosx-x64.tar.gz
-O will automatically extract the filename from the URL, however this is
not always possible.
Cheers,
Emil
Am 13.09.20 um 20:43 schrieb Ben Schmidt via curl-users:
> Hi Dan,
>
> You're looking for: curl -L -o jre-8u172-macosx-x64.tar.gz
> https://bitbucket.org/claudio_ortega/soundbridge/downloads/jre-8u172-macosx-x64.tar.gz
>
> -L : Follow redirects
> -o <FILE> : Save Output as
>
> Cheers
> Ben
>
> On Sun, Sep 13, 2020 at 7:13 PM Daniel Chapiro via curl-users
> <curl-users_at_cool.haxx.se <mailto:curl-users_at_cool.haxx.se>> wrote:
>
> Hi,
>
> I am trying to use curl to download (for example) the following file
> (to use curl in some install scripts), but it returns 0 bytes:
>
> curl
> https://bitbucket.org/claudio_ortega/soundbridge/downloads/jre-8u172-macosx-x64.tar.gz
>
>
> Am I missing some curl options for this to work?
>
> Or is it an issue with the permissions of the account (or of the
> file) in Bitbucket’s server? (if so, what should they be for curl to
> be able to download the file?)
>
> Thanks!
> Dan (curl newbie)
>
>
> BTW, clicking this path downloads the tar.gz successfully. Also,
> wget downloads it fine (but many users don’t have wget installed).
> -----------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html
>
>
> -----------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html
>
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-09-14