Curb updates, including multi interface

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’) do|cfg|
cfg.follow_location = true
cfg.on_body{|d| b1 << d; d.size }
end

c2 = Curl::Easy.new(‘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:

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

-Todd

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs