You use webdav protocol, protected by a login/password, for your website « www.acmee.com » and want to upload a file « test.doc » to one of your web sub-directory « subdir2″ with a command line ? You can do it with « curl » using this command-line :

curl --user login:password --url http://www.acmee.com/dir1/subdir2/test.doc -T test.doc