Webdav:枚举目录项 [英] Webdav: Enumerating directory items

查看:30
本文介绍了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?

谢谢.

推荐答案

相关的 RFC 是 RFC 4918.PROPFIND 的描述 开头为:

The relevant RFC is RFC 4918. The description of PROPFIND starts with:

"PROPFIND 方法检索在由 Request-URI 标识的资源上定义的属性,如果该资源没有任何内部成员,或者在由 Request-URI 标识的资源及其可能的成员资源上,如果该资源是具有内部成员 URL 的集合...."

"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...."

这还不够清楚吗?

这篇关于Webdav:枚举目录项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆