Use curl to upload to webdav server