I have some trouble with FtpWebRequest class.
I use it for connection to two ftp servers
The first server is working perfectly, but when i use the same programm to connect to another one the "The underlying connection was closed: The server committed a protocol violation." exception is thrown when I call GetResponse method.
I found only one difference between servers.
The first server returns:
- 220 Hello k-net ftp server
The second FTP return the same banner but ON RUSSIAN Lang!!!
- 220 ?????? ?? ???! ?????????!
Is any UseUnsafeHeaderParsing property exists for FTPWebRequest, like for HTTP?
P.S> I'am not using SSL!
The sources is here:
FtpWebRequest listRequest =
listRequest.UsePassive = false; //true
listRequest.Method = WebRequestMethods.
View Complete Post