WebDAV - 请求“显示文件夹中的文件”?
我想从 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您指向的链接不是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