views:

23

answers:

1

Can anyone tell me how to resume a download? I'm using urlretrieve function. If there is an interruption, the download restarts from the beginning. I want the program to read the size of localfile (which I m able to do) and then resume the download from that very byte onwards.

+1  A: 

This looks like it'd be worth a try: http://code.activestate.com/recipes/83208-resuming-download-of-a-file/

kindall
This code doesn't work with FTP file downloads. I am able to resume HTTP file downloads by using a similar code. But not in case of FTP.
Mayank