-
Notifications
You must be signed in to change notification settings - Fork 229
Home
Andrey Mukamolow edited this page Jun 4, 2017
·
7 revisions
Support forum for this project is at [http://groups.google.com/group/curb---ruby-libcurl-bindings](http://groups.google.com/group/curb---ruby-libcurl-bindings)
the following .debs are required - libcurl3, libcurl3-gnutls, libcurl4-openssl-dev
d1 = ""
c1 = Curl::Easy.new("http://www.google.com/") do |curl|
curl.headers["User-Agent"] = "myapp-0.0"
curl.on_body {|d| d1 << d; d.length }
end
d2 = ""
c2 = Curl::Easy.new("http://www.yahoo.com/") do |curl|
curl.headers["User-Agent"] = "myapp-0.0"
curl.on_body {|d| d2 << d; d.length }
end
m = Curl::Multi.new
m.add( c1 )
m.add( c2 )
m.perform
Make sure DevKit is installed before you do the following task.
- Download curl-7.23.1-devel-mingw32 from http://www.gknw.net/mirror/curl/win32/curl-7.23.1-devel-mingw32.zip
- Extract to e.g. C:\
- Add C:\curl-7.23.1-devel-mingw32\bin to path
gem install curb -- --with-curl-lib=C:\curl-7.23.1-devel-mingw32\bin--with-curl-include=C:\curl-7.23.1-devel-mingw32\include
That's it.