Curl is a command line tool for doing all sorts of URL manipulations and transfers, but this particular post will focus on how to use curl for managing (read/ delete/ rename/ upload) files on Webdav Server. While the second part of the post will cover implementation of Two Factor Authentication for the same. I'll assume that you know how to execute 'curl' command using terminal and invoke 'curl --help' or 'curl --manual' to get basic information about it.
Assume we have following Data:
Webdav URL: https://example.com/webdav
Username: user
Password: pass
Note: It is recommended to read article completely (both management and curl options) before implementation.
et pour ceux qui n'ont pas easy_install ou pas pip :
curl http://python-distribute.org/distribute_setup.py | python
ensuite pour la dépendance :
pip install stdeb
un bon petit tutoriel utilisant curl pour expliquer comment récupérer une page web et une partie de celle ci en php.
Cool si on veut intégrer directement du contenu (libre de préférence) dans son site.