Downloading of artifacts (e.g. release files) using basic authentication #1509

Closed
opened 2025-11-02 04:03:11 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @Skyr on GitHub (Feb 8, 2018).

I'm running a private gitea instance (i.e. authentication is mandatory). For automatic deployment of released artifacts, I'd like to download them using wget. Unfortunately, it seems that basic authentication headers are not honored, wget --user='...' --password='...' https://my.gitea/attachments/... just downloads the login page.

Is there a way to allow this?

Originally created by @Skyr on GitHub (Feb 8, 2018). I'm running a private gitea instance (i.e. authentication is mandatory). For automatic deployment of released artifacts, I'd like to download them using wget. Unfortunately, it seems that basic authentication headers are not honored, `wget --user='...' --password='...' https://my.gitea/attachments/...` just downloads the login page. Is there a way to allow this?
GiteaMirror added the type/questionissue/stale labels 2025-11-02 04:03:11 -06:00
Author
Owner

@thehowl commented on GitHub (Feb 27, 2018):

Hey there, sorry about the delay:

wget apparently only sends the basic auth information on the second time around, if the first time fails (when making the req with no auth). So that means you have to pass --auth-no-challenge or use curl with the -u username:password option.

@thehowl commented on GitHub (Feb 27, 2018): Hey there, sorry about the delay: wget apparently only sends the basic auth information on the second time around, if the first time fails (when making the req with no auth). So that means you have to pass `--auth-no-challenge` or use curl with the `-u username:password` option.
Author
Owner

@stale[bot] commented on GitHub (Feb 7, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 7, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@Skyr commented on GitHub (Feb 8, 2019):

Uh, this took a while for me to come back to this...

Thanks, this did the trick!

@Skyr commented on GitHub (Feb 8, 2019): Uh, this took a while for me to come back to this... Thanks, this did the trick!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1509