通过 Delphi 和 Indy 10 TIdHTTP 获取 WebDAV 内容
查看 Delphi 新闻组,从 WebDAV 服务器获取内容的最佳方法似乎是使用内置的 TIdHTTP.Get。执行此操作时,结果是 HTML,我只是想确保这是检索有关目录和文件的数据的最佳方式。如果是这样,那么我将解析它,但我只是想确保没有一种更干净的方法可以只为我提供文件/文件夹信息......不,到目前为止我不想为此使用任何其他组件。
Looking on the Delphi newsgroups, it appears the best way to GET content from a WebDAV server is to use the built in TIdHTTP.Get. While doing this, the result is HTML and I just want to make sure that this is the best way to retrieve data about the directories and files. If so, then I'll parse it out, but I just want to make sure there isn't a cleaner way that may have JUST the file/folder information for me... And no, as of now I am not looking to use any other components for this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回答我自己的问题:我想我已经弄清楚了 - 我用 allprop 做了一个 PropFile,深度为 1。这似乎给了我当前“目录”中的所有内容,我可以深入了解它。除非有更好的方法(或者如果我没有正确使用 PropFind),我会认为这是关闭的。有用的参考:
Answering my own: I think I figured it out - I did a PropFile with allprop and a depth of 1. That seems to give me everything in a current "directory" and I can drill down with that. Unless there is a nicer way (or if I am not using PropFind correctly), I will consider this closed. References that were helpful: