On Sat, 23 Dec 2006 16:04:33 -0000, Mariano Kamp <mariano.kamp / acm.org>  
wrote:

>
> On Dec 23, 2006, at 4:55 PM, Ross Bamford wrote:
>
>>
>> If you have libcurl and are willing to install an extension, the  
>> rececently released (;)) Curb 0.1 makes this as easy as:
> Thanks for the tip Ross.
>

Sure :)

> I tried gem install curb ;-) but that didn't work. And as the other  
> version is already downloading the files and I just wanted this program  
> to do this single job I will try out curb the next time ;-)
>

I hear you on the rubygem thing. In preparation for next time, you might  
try that gem install again - it should work now ;)

> You've implemented it in C, so you probably can't answer my question how  
> you dealt with the buffer size too, can you?

I just left that to the experts - although libcurl does provide some  
opportunity for fiddling with it's buffers, it generally seems to do  
pretty well with it's defaults so none of that's exposed in Ruby yet.

Cheers,
-- 
Ross Bamford - rosco / roscopeco.remove.co.uk