# Curb updates, including multi interface

**URL:** <https://www.ruby-forum.com/t/curb-updates-including-multi-interface/143949>\
**Category:** Ruby\
**Created:** [July 24, 2008, 3:39am UTC](https://www.ruby-forum.com/t/curb-updates-including-multi-interface/143949 "2008-07-24T03:39:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toddf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a6a055/32.png) [@toddf](https://www.ruby-forum.com/u/toddf)\
**Post date:** [July 24, 2008, 3:39am UTC](https://www.ruby-forum.com/t/curb-updates-including-multi-interface/143949/1 "2008-07-24T03:39:13Z")

</div>

Hi,

I’ve been working on adding multi interface support to curb along with  
a few other features. The multi interface support is pretty much  
complete. It allows code such as the following:

m = Curl::Multi.new  
b1 = “”  
b2 = “”

c1 = Curl::Easy.new(‘[http://google.com](http://google.com)’) do|cfg|  
cfg.follow\_location = true  
cfg.on\_body{|d| b1 \<\< d; d.size }  
end

c2 = Curl::Easy.new(‘[http://yahoo.com](http://yahoo.com)’) do|cfg|  
cfg.follow\_location = true  
cfg.on\_body{|d| b2 \<\< d; d.size }  
end

m.perform

puts b1  
puts b2

You can try it out by checking out the code here:

> **[GitHub - taf2/curb: Ruby bindings for libcurl](https://github.com/taf2/curb/tree/master)**
>
> master

git clone git://github.com/taf2/curb.git

-Todd
