Response of the FTP server
-
Hello, I use this code to send files to the FTP server :
FtpWebRequest myRequest = (FtpWebRequest)FtpWebRequest.Create(ftp://ftp.server.com/test.txt);
myRequest.Credentials = new NetworkCredential(TEST,HEROS);
myRequest.Method = WebRequestMethods.Ftp.UploadFile;FileStream stream = File.OpenRead(@"c:\test.txt");
byte[] buffer = new byte[stream.Length];
stream.Read(buffer, 0, buffer.Length);
stream.Close();Stream reqStream = myRequest.GetRequestStream();
reqStream.Write(buffer, 0, buffer.Length);
reqStream.Close();How i can receive the reponse, the server ftp return an ID of commande, i can see this number in FilZilla, bu i need to retrieve this id on C#, thank you verry mutch.
-
Hello, I use this code to send files to the FTP server :
FtpWebRequest myRequest = (FtpWebRequest)FtpWebRequest.Create(ftp://ftp.server.com/test.txt);
myRequest.Credentials = new NetworkCredential(TEST,HEROS);
myRequest.Method = WebRequestMethods.Ftp.UploadFile;FileStream stream = File.OpenRead(@"c:\test.txt");
byte[] buffer = new byte[stream.Length];
stream.Read(buffer, 0, buffer.Length);
stream.Close();Stream reqStream = myRequest.GetRequestStream();
reqStream.Write(buffer, 0, buffer.Length);
reqStream.Close();How i can receive the reponse, the server ftp return an ID of commande, i can see this number in FilZilla, bu i need to retrieve this id on C#, thank you verry mutch.