ComponentPro UltimateFtp

      Upgrade to encrypted communication

      Language Filter: AllSend comments on this topic to ComponentPro

      If you want to upgrade an unsecure/plain FTP connection to a secured one, use the UpgradeConnection method as shown below:

      // Create a new class instance. 
      using (Ftp client = new Ftp())
          // Connect to the unsecure FTP server. 
          client.Connect("myserver", 21);
          // Authenticate. 
          client.Authenticate("userName", "password");
          // ... 
          // Upgrade to the secure connection 
          // ...