Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.2k views
in .NET FTP by
I am using edtftp.net to connect to my Playstation2 using execftp, a FTP server that runs on the PS2 which is based on ps2ftpd.

This particular FTP server does not require a password, when sending "USER username" it replies directly with a "230" code. I don't know if this is valid as per the FTP RFC but I needed it to work so I modified the FTPClient.Login method to handle this case. Here is the code :

public void Login(string user, string password)
{         
   string response = control.SendCommand("USER " + user);
   lastValidReply = control.ValidateReply(response, new string[] { "331", "230" });
   // If login ok, no need to send password
   if(lastValidReply.ReplyCode == "331")
   {
      response = control.SendCommand("PASS " + password);
      lastValidReply = control.ValidateReply(response, "230");
   }
}


Great library BTW, thanks a lot for making it open source !

Nidhogg

1 Answer

0 votes
by (161k points)
Many thanks for your contribution.

We will very soon be starting major enhancements to edtFTPnet, based on recent additions to our Java client, edtFTPj. It will take a little while, but soon all edtFTPj features (of which there are many) will be present in edtFTPnet.

I am using edtftp.net to connect to my Playstation2 using execftp, a FTP server that runs on the PS2 which is based on ps2ftpd.

This particular FTP server does not require a password, when sending "USER username" it replies directly with a "230" code. I don't know if this is valid as per the FTP RFC but I needed it to work so I modified the FTPClient.Login method to handle this case.

Categories

...