in reply to Resume failed file transfer
Hi!
Is FTP is the protocol, use Net::FTP. You can resume a file transfer from where is was interrupted by using the following syntax:
$result = $ftp->get($remotefile, $localfile, $offset);
In $offset you can specify the position from where the transfer should start. For HTTP, you can use LWP this way:
$request->header('Range' => "bytes=$local_size-$remote_size");
This should be added as an header to the request for the file.
Hope this helps!
Michele.
In Section
Seekers of Perl Wisdom