Testing WebDAV uploads with curl

Pretty simple, but handy.

curl -X PUT –trace-ascii – -T /path/to/file/to/upload http://thewebdavhost.com/webdirectory/remotefilename

Note that a PUT will overwrite an existing file.