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: Download ZIP file of private gitea repository
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Timothe Litt <litt_at_acm.org>
Date: Sat, 3 Sep 2022 09:14:53 -0400
This sounds like more fallout from the "security" fix for redirects.
Try --location-trusted instead of -L in order for the username/password
to follow GitHub's redirects.
If that doesn't work, what is in the file that you get?
Timothe Litt
ACM Distinguished Engineer
--------------------------
This communication may not represent the ACM or my employer's views,
if any, on the matters discussed.
On 03-Sep-22 07:50, albert kao via curl-users wrote:
> Hi,
>
> I can use the chrome browser to download the ZIP file of a private
> gitea repository https://someurl.com/mydir/archive/master.zip after
> entering username and password.
>
> I try to use curl to download the same ZIP file.
>
> curl -s -S -L -O --user myusername:mypassword
> https://someurl.com/mydir/archive/master.zip
>
> The downloaded master.zip is only 8534 bytes, much smaller than the
> expected file size.
> In addition, the file cannot be unzipped.
> How to download the ZIP file with curl?
> Please help.
> Thanks.
>
>
Received on 2022-09-03
Date: Sat, 3 Sep 2022 09:14:53 -0400
This sounds like more fallout from the "security" fix for redirects.
Try --location-trusted instead of -L in order for the username/password
to follow GitHub's redirects.
If that doesn't work, what is in the file that you get?
Timothe Litt
ACM Distinguished Engineer
--------------------------
This communication may not represent the ACM or my employer's views,
if any, on the matters discussed.
On 03-Sep-22 07:50, albert kao via curl-users wrote:
> Hi,
>
> I can use the chrome browser to download the ZIP file of a private
> gitea repository https://someurl.com/mydir/archive/master.zip after
> entering username and password.
>
> I try to use curl to download the same ZIP file.
>
> curl -s -S -L -O --user myusername:mypassword
> https://someurl.com/mydir/archive/master.zip
>
> The downloaded master.zip is only 8534 bytes, much smaller than the
> expected file size.
> In addition, the file cannot be unzipped.
> How to download the ZIP file with curl?
> Please help.
> Thanks.
>
>
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.html
- application/pgp-signature attachment: OpenPGP digital signature