WebDAV File Transfer

05.06.2024 ยท dadevel

File Transfer over the WebDAV protocol.


WebDAV connections on Windows are handled by the WebClient service. It is preinstalled on desktops, but not on servers.

Starting the service explicitly requires local admin rights, but it starts automatically when a WebDAV share is accessed over the GUI. For example the command start \\\ can be used to trigger the service. The command itself will fail, but that's intentional, so no Explorer window pops up.

Generally all Windows programs that expect absolute file paths also accept paths to network shares aka UNC paths. See SMB File Transfer for examples.

WebDAV path syntax:

# over http
# over https
# smb with fallback to webdav


With rclone over HTTP.

rclone serve -v webdav . --addr :8080 --read-only

Alternatively over self-signed HTTPS.

openssl req -newkey rsa:2048 -nodes -x509 -days 365 -keyout ./webdav.key -out ./webdav.crt
rclone serve -v webdav . --read-only --addr :8443 --cert ./webdav.crt --key ./webdav.key

Python WsgiDAV over HTTP (source).

wsgidav --host --port 8080 --auth anonymous --root .

Other tools:

  • goshs, simple HTTP and WebDAV server in Go
  • The Nginx WebDAV module is to bare bones and does not work with Windows.