Hello,
I'm working with QFtp and I have to implement a function that can allow user to resume an aborted download. I found the REST command from FTP RFC. I'm trying to use it with the "get" method but it doesn't work.
Do you have any idea ?
Here is my code :
ftp->connectToHost(url.host(), url.port(21));
ftp->login();
reqRange="rest "+"100"; //In order to restart after 100 bytes, reqRange is a static buffer
ftp->rawCommand(reqRange); //Without that line at the beginning, the download starts
ftp->get(url.path(),file);
ftp->connectToHost(url.host(), url.port(21));
ftp->login();
reqRange="rest "+"100"; //In order to restart after 100 bytes, reqRange is a static buffer
ftp->rawCommand(reqRange); //Without that line at the beginning, the download starts
ftp->get(url.path(),file);
To copy to clipboard, switch view to plain text mode
Thank you,
Wagui
Bookmarks