WebDAV - 请求“显示文件夹中的文件”?

发布于 2024-12-04 10:26:10 字数 272 浏览 6 评论 0原文

我想从 WebDAV 共享下载所有 *.txt 文件。 是否有请求/方法可以从此文件夹获取文件列表?

我是 WebDAV 的新手,在 w3.org WebDAV 方法定义中我没有找到此信息。 http://www.w3.org/Protocols/rfc2616/ rfc2616-sec9.html#sec9.3

I want to download all *.txt files from a WebDAV share.
Is there a request/methode to get a list of files from this folder?

I´m new to WebDAV and at the w3.org WebDAV methode definition I don´t found this information.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

妖妓 2024-12-11 10:26:10

您指向的链接不是WebDAV规范,而是HTTP规范。如果要列出目录(集合)的内容,则必须使用 PROPFIND 方法,该方法应返回包含所有信息的 XML 文档。

https://www.rfc-editor.org/rfc/rfc4918#section- 9.1

The link you pointed at is not the WebDAV specfication, but the HTTP specification. If you want to list the contents of a directory (collection) you must use the PROPFIND method instead, which should return an XML document with all the information.

https://www.rfc-editor.org/rfc/rfc4918#section-9.1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文