How to transfer files using HTTP
  

edtFTPnet/Express now supports the use of HTTP to perform downloads (uploads are not currently supported).

The same API that is used for FTP can be used to download files via HTTP, and to resume file downloads that have been interrupted (only binary mode transfers can be resumed).

Code to perform a download via HTTP is shown below. In this example, the file at the URL
http://www.test.com/public/test/test.zip is to be downloaded into the C:\temp directory:

ExFTPConnection ftpConnection = new ExFTPConnection();

// set the host address
ftpConnection.ServerAddress = "www.test.com";

// set the protocol to HTTP
ftpConnection.Protocol = FileTransferProtocol.HTTP;

// set binary transfers (this is the default)
ftpConnection.TransferType = FTPTransferType.BINARY;

// connect and change to the correct directory
ftpConnection.Connect();
ftpConnection.ChangeworkingDirectory("/public/test");

// download the file
ftpConnection.DownloadFile("C:\\temp\\test.zip", "test.zip");

ftpConnection.Quit();


It may be necessary to use an HTTP proxy for HTTP downloads.  HTTP proxying is set up using the ProxySettings group of properties, and more details can be found at How to FTP through an HTTP proxy.