/ Published in: Ruby

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/usr/local/bin/ruby require 'rubygems' require 'curl-multi' curl = Curl::Multi.new on_success = lambda do |body| puts body end on_failure = lambda do |ex| puts 'Failure.' puts ex end curl.get('http://www.wp.pl', on_success, on_failure) curl.select([],[]) while curl.size > 0;
Comments
