Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
WebDAV .NET
>
Tutorial
> Synchronous download
Here is one example of synchronous download.
C# example
using System; using System.Net; using Independentsoft.Webdav; namespace Sample { class Program { static void Main(string[] args) { NetworkCredential credential = new NetworkCredential("username", "password"); WebdavSession session = new WebdavSession(credential); Resource resource = new Resource(session); resource.Download("http://myserver/dav/file1.txt", "c:\\file1.txt"); } } }
VB example
Imports System Imports System.Net Imports Independentsoft.Webdav Module Module1 Sub Main(ByVal args() As String) Dim credential As NetworkCredential = New NetworkCredential("username", "password") Dim session As WebdavSession = New WebdavSession(credential) Dim resource As Resource = New Resource(session) resource.Download("http://myserver/dav/file1.txt", "c:\\file1.txt") End Sub End Module
Need help? Ask our developers:
Name*
Email*
Message*