Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web-DAV supports customized request headers and user agents. #370

Open
2 tasks done
yuyu1025 opened this issue Aug 22, 2024 · 4 comments
Open
2 tasks done

Web-DAV supports customized request headers and user agents. #370

yuyu1025 opened this issue Aug 22, 2024 · 4 comments
Labels

Comments

@yuyu1025
Copy link

Please agree to the following

Summary

Web-DAV supports customized request headers and user agents.

Motivation

There are some netdisks that don't support Web-DAV mounting method, but you can disguise the mounting by alist. However, it is often necessary to customize the user agent. After providing this ability, it will be possible to support most of the network disks.

Considered Alternatives

No response

Anything else?

No response

@yuyu1025 yuyu1025 added the type:feature-request New feature or request label Aug 22, 2024
@tobihagemann
Copy link
Member

I can imagine this to be part of #37, so that the user agent is automatically set to "just work". I don't really like the idea to be able to fully customize it. However, I'm not even sure if this workaround would violate the terms of services of the respective cloud storage service. Sounds like it, to be honest.

Can you be more specific, which cloud storage service is affected here?

@yuyu1025
Copy link
Author

Here is the cloud storage service I saw: https://alist.nn.ci/guide/drivers/baidu.html . In fact, ALIST supports web-dav mounting on most of the cloud storage services by proxy, but due to the limitation of cloud storage services, sometimes you need to modify the user agent, e.g. for baidu cloud storage service, you need to add "pan.baidu.com" to the user agent.

@tobihagemann
Copy link
Member

If I understood you correctly, you'd like to establish this kind of connection:

Cryptomator ↔ AList (via WebDAV) ↔ Baidu Netdisk

In this scenario, Cryptomator doesn't connect to Baidu Netdisk directly and Baidu is the one that requires a special user agent. Technically, AList is responsible for including the customized user agent. Or is AList already doing that? Have you tried out this scenario? Maybe it just works already?

@yuyu1025
Copy link
Author

alist does include a user agent, but the client has to go through the proxy server, which is a big test of the server's performance and traffic flow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants