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: ghanashyam satpathy via curl-users <curl-users_at_cool.haxx.se>
Date: Mon, 14 Sep 2020 22:03:22 +0530

Here is command line arg from a windows computer to download the file using
curl

curl -L -o c:\fold\jre
https://bitbucket.org/claudio_ortega/soundbridge/downloads/jre-8u172-macosx-x64.tar.gz

Thanks

On Mon, Sep 14, 2020 at 3:32 PM <curl-users-request_at_cool.haxx.se> wrote:

> Send curl-users mailing list submissions to
> curl-users_at_cool.haxx.se
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
> or, via email, send a message with subject or body 'help' to
> curl-users-request_at_cool.haxx.se
>
> You can reach the person managing the list at
> curl-users-owner_at_cool.haxx.se
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of curl-users digest..."
>
>
> Today's Topics:
>
> 1. using curl to download a file (Daniel Chapiro)
> 2. Re: using curl to download a file (Ben Schmidt)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 13 Sep 2020 08:31:15 -0700
> From: Daniel Chapiro <dchapiro_at_gmail.com>
> To: curl-users_at_cool.haxx.se
> Cc: Claudio Ortega <claudio.alberto.ortega_at_gmail.com>
> Subject: using curl to download a file
> Message-ID: <316CDA64-E1D7-475B-8A5E-811698467F28_at_gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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).
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/curl-users/attachments/20200913/3010fa8c/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Sun, 13 Sep 2020 20:43:38 +0200
> From: Ben Schmidt <crackhd2_at_gmail.com>
> To: the curl tool <curl-users_at_cool.haxx.se>
> Cc: Daniel Chapiro <dchapiro_at_gmail.com>, Claudio Ortega
> <claudio.alberto.ortega_at_gmail.com>
> Subject: Re: using curl to download a file
> Message-ID:
> <
> CA+Cs8xKLWuhsh3X94cKAVdnAnHdYqSQ4sZtoww+ZLPJkMJy37Q_at_mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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
> <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
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/curl-users/attachments/20200913/cd6bffc2/attachment-0001.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> curl-users mailing list
> curl-users_at_cool.haxx.se
> https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
>
>
> ------------------------------
>
> End of curl-users Digest, Vol 181, Issue 7
> ******************************************
>

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-09-14