Automatically resume a download w/ urllib?

Oleg Broytmann phd at phd.pp.ru
Tue Oct 23 06:07:32 EDT 2001


On Tue, Oct 23, 2001 at 05:31:54PM +1300, Mark Rowe wrote:
> After reading some RFC's and tweaking some Apache settings, I managed to get
> this working.  I was only able to test it on my local server and it appears
> to work fine.  Any comments or improvements, feel free :)

   Thank you.

[skip]
>     if existSize > 0:
>         h.putheader('Range', 'bytes=%d-' % (existSize, ))

   Looks good.

[skip]
>         ## HTTP error 416 = Request Range not Satisiable
                                                    ^
   Typo (-:                                        _|

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list