From: Patrick Plattes Date: 2006-12-01T04:48:36+09:00 Subject: Re: Download a file piece by piece Louis J Scoras schrieb: > It would be nice if there was an easier way to handle the data as it > comes in; but if you just need to do a progress bar, Kernel.open takes > two optional parameters just for this purpose: > > :content_length_proc - gets called initially w/ the document size, if it > could be obtained in the content-length header > > :progress_proc - gets called with the size of the data read so far. > > It's in the rdoc for open-uri under OpenURI::OpenRead#open. > Thanks! I'm happy. It works really great :-) Have a nice day, Patrick