Webdav:枚举目录项
我正在 PHP 中为 Apache 实现一个 webdav 服务器。我想知道webdav 客户端通常使用哪些webdav 方法(例如GET、PUT、PROPFIND、PROPPATCH 等)来枚举或列出文件夹中的内容(文件)?相关的 RFC 对此有些不清楚。
此外,预计会得到什么样的回应?
谢谢。
I am implementing a webdav server in PHP for Apache. I would like to know which of the webdav methods (e.g., GET, PUT, PROPFIND, PROPPATCH, etc.) do webdav clients usually use to enumerate or list the contents (files) in a folder? the relevant RFCs are somewhat unclear about this.
Furthermore, what sort of response is expected?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
相关的 RFC 是 RFC 4918。 PROPFIND 的描述 开头:
“PROPFIND 方法检索在由 Request-URI 标识的资源上定义的属性(如果资源没有任何内部成员),或者在由 Request-URI 标识的资源及其可能的成员资源上定义的属性(如果资源是集合)有内部会员 URL...”
这还不够清楚吗?
The relevant RFC is RFC 4918. The description of PROPFIND starts with:
"The PROPFIND method retrieves properties defined on the resource identified by the Request-URI, if the resource does not have any internal members, or on the resource identified by the Request-URI and potentially its member resources, if the resource is a collection that has internal member URLs...."
Isn't that sufficiently clear?