ComponentPro UltimateFtp

      Authenticate with a password

      Language Filter: AllSend comments on this topic to ComponentPro

      To authenticate a user with password-based authentication, just use this Authenticate method overload. The first parameter is the name of the user, the second one is the user's password.

      using ComponentPro.Net;
      // Create a new class instance.
      Ftp client = new Ftp();
      // Connect to the FTP server.
      // Or you can specify the FTP port with 
      // client.Connect("myserver", 21); 
      // Authenticate.
      client.Authenticate("userName", "password");
      // Do something here...
      client.DownloadFile("/my remote file.dat", "my local file");
      // Disconnect.