curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: using curl to download a file

From: Ben Schmidt via curl-users <curl-users_at_cool.haxx.se>
Date: Sun, 13 Sep 2020 20:43:38 +0200

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> 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
Received on 2020-09-13