简体   繁体   English

Webdav:枚举目录项

[英]Webdav: Enumerating directory items

I am implementing a webdav server in PHP for Apache. 我正在用PHP为Apache实现webdav服务器。 I would like to know which of the webdav methods (eg, GET, PUT, PROPFIND, PROPPATCH, etc.) do webdav clients usually use to enumerate or list the contents (files) in a folder? 我想知道webdav客户端通常使用哪种webdav方法(例如GET,PUT,PROPFIND,PROPPATCH等)来枚举或列出文件夹中的内容(文件)? the relevant RFCs are somewhat unclear about this. 相关的RFC对此尚不清楚。

Furthermore, what sort of response is expected? 此外,预期会有什么样的反应?

Thanks. 谢谢。

The relevant RFC is RFC 4918. The description of PROPFIND starts with: 相关的RFC是RFC4918。PROPFIND的描述始于:

"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...." “如果资源没有任何内部成员,则PROPFIND方法将检索在Request-URI所标识的资源上定义的属性;如果资源是一个包含以下内容的集合,则该资源将在Request-URI所标识的资源及其可能的成员资源上进行定义具有内部成员URL。...”

Isn't that sufficiently clear? 还不够清楚吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM