What are your experiences implementing/using WebDAV?

后端 未结 8 668
南方客
南方客 2021-02-02 03:43

For a current project, I was thinking of implementing WebDAV to present a virtual file store that clients can access. I have only done Google research so far but it looks like I

8条回答
  •  说谎
    说谎 (楼主)
    2021-02-02 04:33

    I implemented most of the WebDAV protocol in about a day's work: http://github.com/nfarina/simpledav

    I wrote it in Python to run on Google App Engine, and I expect any other language would be a similar effort. All in all, it's about two pages of code.

    I implemented following methods: OPTIONS, PROPFIND, MKCOL, DELETE, MOVE, PUT, GET. So far I've tested Transmit and Cyberduck and both work great with it.

    Hopefully this can provide some guidance for the next person out there interested in implementing a WebDAV server. It's not a difficult protocol, it's just very dense with abstracted language like 'depth' and 'collections' and blah.

    Here's the spec: http://www.webdav.org/specs/rfc4918.html

    But the best way to understand the protocol is to watch a client interacting with a working server. I used Transmit to connect to Box.net's WebDAV server and monitored traffic with Charles Proxy.

提交回复
热议问题