From: Mariano Kamp Date: 2006-12-24T02:04:43+09:00 Subject: Re: Question: Downloading files with open(-uri)? Edwin Fine wrote: > Mariano Kamp wrote: >> Edwin Fine wrote: >> >> Wow. Cool. How did you know about the content_length and progress >> hooks? I don't see them in the docs. > It's documented here: > http://www.ruby-doc.org/stdlib/libdoc/open-uri/rdoc/ Grmpfh. I looked there, but probably too properly. > downloading http://ibm.com [..] > Read 0131826472 bytes Thanks for trying that out. Well, it seems, that open already read all the bytes. Changing the implementation the way Robert suggested healed that. So it was not really a problem with the buffering, as I suspected, but with improper use of the API. Cheers, Mariano