curb updates, including multi interface

T

Todd Fisher

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:
http://github.com/taf2/curb/tree/master

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


-Todd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top