I use ftp url connection for getting files from a FTP server. It works fine, however sometime conection gets lost, so I have to restart the process. Since I use this for backup purpose, transfered files can be quite large (about 10-20GB), it's pitty to restart complete download at mostly finished file. I know that ftp clients as wget support resume. How can I do resume using ftp url connection? Pointing me to ftp RFC is more than sufficient.
Thanks, it looks like I can subclass ftp url connection to access underneath ftp client object and reach desirable behavior. I can also register my URL handler to make process of using my class automatic. Strange that google gives you links from Finland.
To perform a FTP resume you must issue the REST command to the server. I'm not sure that the ftp url syntax will allow you to do this as when using the ftp url syntax there is no way of telling it the offset from which to resume file transfer. To accomplish this you would need to use raw sockets.
Well THAT's new! Comfort me, reliable tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop