This works for almost any server. Using Filezilla server 1.0.1 on Windows, this doesn't work. This server, supports UTF8 and reacts as expected to the FEAT command, but if trying to login with UTF8 then
Set LocalDirectory to D:\Projects\Test\_BIN\Debug
waitOnShutdownSSL=True
StrictReturnCodes=False
Setting socket timeout=120000
SecureSocket timeout=120000
SecureSocket timeout=120000
Command encoding=System.Text.UTF8Encoding
Setting socket buffer sizes=-1
220-FileZilla Server 1.0.1
220 Please visit https://filezilla-project.org/
---> USER testuser
501 What are you trying to do? Go away.
Expected reply codes = [230,232,331] (strict=False)
Purging task queue
Defaulting to Unix parsing
Killed control socket
KeepAlive thread finished.
If I login with ANSI then it's OK and it gets the FEAT right but setting ftp.CommandEncoding = Encoding.UTF8; afterwards give me errors with non-ansi characters.
Set LocalDirectory to D:\Projects\Test\_BIN\Debug
waitOnShutdownSSL=True
StrictReturnCodes=False
Setting socket timeout=120000
SecureSocket timeout=120000
SecureSocket timeout=120000
Command encoding=System.Text.SBCSCodePageEncoding
Setting socket buffer sizes=-1
220-FileZilla Server 1.0.1
220 Please visit https://filezilla-project.org/
---> USER testuser
331 Please, specify the password.
---> PASS ********
230 Login successful.
---> FEAT
211-Features:
MDTM
REST STREAM
SIZE
MLST type*;size*;modify*;perm*;
MLSD
AUTH SSL
AUTH TLS
PROT
PBSZ
UTF8
TVFS
EPSV
EPRT
MFMT
211 End
ChangeWorkingDirectory('/')
---> CWD /
250 CWD command successful
---> PWD
257 "/" is current directory.
---> TYPE I
200 Type set to I
---> PASV
227 Entering Passive Mode (127,0,0,1,201,220)
Server supplied address=127.0.0.1
Server supplied port=51676
autoPassiveIPSubstitution=True
remoteAddr=127.0.0.1
SecureSocket timeout=120000
SecureSocket timeout=120000
SecureSocket timeout=120000
SecureSocket timeout=120000
---> STOR upload test.txt
150 Starting data transfer.
Closing source stream
Shutdown(Both)
Attempt to close unconnected passive data-channel.
Transferred 66 bytes to remote host
226 Operation successful
Purging task queue
Defaulting to Unix parsing
---> QUIT
200 Goodbye.
Shutdown(Both)
KeepAlive thread finished.