I'm testing Ftp with Rebex.net with VisualStudio 2013 .net version v4.0.30319.
Without proxy the same ftp site works fine, but when I have to use proxy it slows down.
The time for connection takes 50 seconds, the upload takes another 50-60 seconds, and is nearly independent of the size of uploaded file: 10 KB upolad = 50 seconds, 2 MB upload = 60 seconds.
The ftp site and the proxy are o.k. , with TotalCommander the upload speed is normal.
My code:
client.Proxy.Host = "proxy.*.de";
client.Proxy.Port = 8080;
client.Proxy.ProxyType = Rebex.Net.FtpProxyType.HttpConnect;
client.Proxy.AuthenticationMethod = Rebex.Net.FtpProxyAuthentication.Ntlm;
client.Passive = true;
//for speed and success of transfer these settings seems indifferent:
client.TransferType = Rebex.Net.FtpTransferType.Ascii;
client.MaxUploadSpeed = 0;
client.Options = Rebex.Net.FtpOptions.ConnectPassiveLater;
////////////////////////////////////////////////////////////////////////////
client.Proxy.UserName = "ProxyUser";
client.Proxy.Password = "ProxyPassword";
client.Connect("ftp.***.hu", 21);
client.Login("FtpUser", "FtpPassword");
client.Upload("anyfile.txt", "In");
client.Disconnect();
Thanks
Peter Muzik
Pharmasoft Bt