I’m need a test program to automate an upload to an FTP where I want to close the connection before the file have been uploaded as I need this to check how our server handles broken file uploads. I want to “kill” the connection rather than closing it.
Anyone got some suggestion how to do this in C#?
How do you upload? Using
FtpWebRequest? If yes, use:See MSDN.
If you upload in separate thread, just kill this thread.