[GH-ISSUE #181] How to download via api if auth is set #89

Closed
opened 2026-04-08 16:50:16 +03:00 by zhus · 1 comment
Owner

Originally created by @Jiesen-Chen on GitHub (Feb 21, 2023).
Original GitHub issue: https://github.com/sigoden/dufs/issues/181

Originally created by @Jiesen-Chen on GitHub (Feb 21, 2023). Original GitHub issue: https://github.com/sigoden/dufs/issues/181
zhus closed this issue 2026-04-08 16:50:16 +03:00
Author
Owner

@sigoden commented on GitHub (Feb 21, 2023):

For basic auth:

curl --user admin:admin http://192.168.8.10:5000/file
wget --user admin --password admin http://192.168.8.10:5000/file

In other http client, add header Authorization: Basic YWRtaW46YWRtaW4=

For digest auth

curl --user admin:admin --digest http://192.168.8.10:5000/file
wget --user admin --password admin http://192.168.8.10:5000/file

In other http client, add header Authorization: Digest username="admin", realm="DUFS", nonce="63f42d2ef777ad88783383c83cd5903932", uri="/", response="23e0b106204a6a0b9c5241e667bda41b", qop=auth, nc=00000002, cnonce="1cee67e83a70d0d6"

<!-- gh-comment-id:1437799205 --> @sigoden commented on GitHub (Feb 21, 2023): For basic auth: ``` curl --user admin:admin http://192.168.8.10:5000/file wget --user admin --password admin http://192.168.8.10:5000/file ``` In other http client, add header `Authorization: Basic YWRtaW46YWRtaW4=` For digest auth ``` curl --user admin:admin --digest http://192.168.8.10:5000/file wget --user admin --password admin http://192.168.8.10:5000/file ``` In other http client, add header `Authorization: Digest username="admin", realm="DUFS", nonce="63f42d2ef777ad88783383c83cd5903932", uri="/", response="23e0b106204a6a0b9c5241e667bda41b", qop=auth, nc=00000002, cnonce="1cee67e83a70d0d6"`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#89