Guest User

Untitled

a guest
Jan 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp:...../inbox/" + fileName));
  2. reqFTP.Method = WebRequestMethods.Ftp.UploadFile;
  3. reqFTP.UsePassive = true;
  4. reqFTP.UseBinary = true;
  5. reqFTP.KeepAlive = true;
  6. reqFTP.ServicePoint.ConnectionLimit = files.Length;
  7. reqFTP.Credentials = new NetworkCredential("username", "password");
  8. reqFTP.EnableSsl = true;
  9. ServicePointManager.ServerCertificateValidationCallback = Certificate;
  10.  
  11. System.Net.ServicePointManager.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) => true);
Add Comment
Please, Sign In to add comment