in reply to Is there a way to continue downloads when using WWW::Mechanize?

Basically you need to do what wget -c is doing, which is checking the filesize of the local file, then requesting the uri with a Range header...

update: example

C:\>GET http://crazyinsomniac.perlmonk.org/css/+.css /* Here be PodMaster's modifications/additions */ textarea {width: 100%; height: 25em;} C:\>GET -H "Range: bytes=50-" http://crazyinsomniac.perlmonk.org/css/+ +.css textarea {width: 100%; height: 25em;} C:\>

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: Is there a way to continue downloads when using WWW::Mechanize?
  • Download Code

Replies are listed 'Best First'.
Re^2: Is there a way to continue downloads when using WWW::Mechanize?
by Kanji (Parson) on Jul 20, 2004 at 13:16 UTC

    Perhaps then...

    my $offset = how_much_already_downloaded($link); $mech->get($link, Range => "bytes=$offset-");

        --k.