

COPY: copy a resource from one uniform resource identifier (URI) to another.WebDAV extends the standard HTTP verbs (GET, POST, PUT, DELETE, PATCH), and adds the following verbs: Var folderCreated = await client.CreateDir(folder.Href, tempName) Create a folder (with a random name) in the 'Test' folder Var fileUploaded = await client.Upload(folder.Href, tempName) Upload a file (with a random name) to 'Test' folder Var stream = await client.Download(folderFile.Href) Var folderFile = folderFiles.FirstOrDefault(f => f.IsCollection = false) Var folderFiles = await client.List(folder.Href) Retrieve list of items in 'Test' folder Var folderReloaded = await client.Get(folder.Href) Var folder = files.FirstOrDefault(f => f.Href.EndsWith("/Test/")) Set basic information for WebDAV provider Var client = new WebDAVClient.Client(new NetworkCredential())

Var client = new WebDAVClient.Client(new NetworkCredential
#Best webdav client code
Here’s the sample code taken from the GitHub repository: Downloading & uploading partial content.Supports Unauthenticated or Windows Authentication-based access.Implemented using HttpClient, which means support for extendibility such as throttling and monitoring.I ended up writing my own library, with the following features: I’ve found several libraries which provide WebDAV support, most didn’t support async/await out of the box, or were not strongly-typed. Async/Await support are not required but preferred. Case in point – WebDAV client implemented in C#. That being said, every now and then I find myself searching for such solutions (whether it’s in GitHub, Google Code, or perhaps just a blog post), and not finding anything useful, even for basic requirements. I always prefer using existing libraries implemented by someone else – it means that I don’t have to study the subject matter, and not less important, that someone else maintains the code for me (test the code, implement new features, follow-up on newer versions of the APIs if any, etc.).
