Connecting to a WebDAV server under Linux

Procédure

Introduction

WebDAV, or Web-based Distributed Authoring and Versioning, is a protocol that extends HTTP for managing files on remote servers. It allows server directories to be mounted on your local system for easy use in a variety of applications.

Installing the WebDAV Client

Under Linux, you will need a WebDAV client such as cadaver, dav2fs, or davfs2. These clients can be installed via the package manager of your Linux distribution.

Connecting to the Server

Use Nautilus in the GNOME environment and enter the URL with davs:// instead of https:// to initiate the connection.

Connecting to a WebDAV server under Linux

Using cURL with WebDAV

You can also use cURL from the command line to manage files on a WebDAV server:

Send a file :

⌨ Command
curl -T file.ext https://webdav.monsiteinternet.fr/data -u user:password

Retrieve a file:

⌨ Command
curl https://webdav.monsiteinternet.fr/data/fichier.ext -u user:password -o fichier.ext

Rename a file :

⌨ Command
curl -X MOVE --header "destination:https://webdav.monsiteinternet.fr/data/nouveauFichier.ext" "https://webdav.monsiteinternet.fr/data/fichier.ext" -u user:password

Create a folder :

⌨ Command
curl -X MKCOL https://webdav.monsiteinternet.fr/nouveauDossier -u user:password

Delete a file/folder :

⌨ Command
curl -X DELETE https://webdav.monsiteinternet.fr/data/fichier.ext -u user:password.

help.lws.net/a/1809
Was this article helpful?

Yes

No

Read 17 631 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.