Webdav:枚举目录项

发布于 2024-11-08 21:09:20 字数 172 浏览 11 评论 0原文

我正在 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 技术交流群。

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

发布评论

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

评论(1

白昼 2024-11-15 21:09:20

相关的 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?

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