FtpGetFile
-
Hi all, I'm using the WinInet api to download a file from an ftp server which works fine. What does not work fine however is that when (for testing purposes) I kill the connection (both data and control channels) or shutdown the server FtpGetFile() does not return an error like it should. I also tried to use FtpOpenFile() and InternetReadFile(). This method downloads files fine. However it displays the same probs: when i kill the connection, etc InternetReadFile returns TRUE. In all cases both GetLastError and InternetGetLastResponseInfo are returning 0, i.e. no error. Is there some way I can detect when a download has failed (either when using FtpGetFile or InternetReadFile) short of writing an ftp client or comparing the file sizes (a very inelegant solution). 10x for ur help