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: albert kao via curl-users <curl-users_at_lists.haxx.se>
Date: Sun, 4 Sep 2022 09:07:45 -0400
I try --location-trusted instead of -L but that doesn't work.
The file that I get, edited for brevity, is:
<form class="ui form" action="/user/login" method="post">
<input type="hidden" name="_csrf" value="MPetQDF">
<div class="required inline field">
<label for="user_name">Username or Email Address</label>
<input id="user_name" type="text" name="user_name" value="" autofocus
required>
</div>
<div class="required inline field">
<label for="password">Password</label>
<input id="password" name="password" type="password" value=""
autocomplete="current-password" required>
</div>
</form>
<a href="/api/swagger">API</a>
<script src="/assets/js/index.js?v=a30bc3"></script>
On Sat, Sep 3, 2022 at 9:15 AM Timothe Litt via curl-users <
curl-users_at_lists.haxx.se> wrote:
> 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
>
Date: Sun, 4 Sep 2022 09:07:45 -0400
I try --location-trusted instead of -L but that doesn't work.
The file that I get, edited for brevity, is:
<form class="ui form" action="/user/login" method="post">
<input type="hidden" name="_csrf" value="MPetQDF">
<div class="required inline field">
<label for="user_name">Username or Email Address</label>
<input id="user_name" type="text" name="user_name" value="" autofocus
required>
</div>
<div class="required inline field">
<label for="password">Password</label>
<input id="password" name="password" type="password" value=""
autocomplete="current-password" required>
</div>
</form>
<a href="/api/swagger">API</a>
<script src="/assets/js/index.js?v=a30bc3"></script>
On Sat, Sep 3, 2022 at 9:15 AM Timothe Litt via curl-users <
curl-users_at_lists.haxx.se> wrote:
> 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
>
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2022-09-04