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.

Download ZIP file of private gitea repository

From: albert kao via curl-users <curl-users_at_lists.haxx.se>
Date: Sat, 3 Sep 2022 07:50:20 -0400

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
Received on 2022-09-03