class Curl::Multi

def post(urls_with_config, easy_options={}, multi_options={}, &blk)


multi_options: options to set on the Curl::Multi handle
easy_options: are a set of common options to set on all easy handles
urls_with_config: is a hash of url's pointing to the postfields to send

Blocking call to POST multiple form's in parallel.

end
easy_handle_on_request_complete
{:pipeline => Curl::CURLPIPE_HTTP1}) do|easy|
{ :follow_location => true, :multipart_form_post => true },
{:url => 'url3', :post_fields => {'field1' => 'value1', 'field2' => 'value2'}}],
{:url => 'url2', :post_fields => {'field1' => 'value1', 'field2' => 'value2'}},
Curl::Multi.post([{:url => 'url1', :post_fields => {'field1' => 'value1', 'field2' => 'value2'}},

call-seq:
def post(urls_with_config, easy_options={}, multi_options={}, &blk)
  url_confs = []
  urls_with_config.each do|uconf|
    url_confs << uconf.merge(:method => :post).merge(easy_options)
  end
  self.http(url_confs, multi_options) {|c,code,method| blk.call(c) }
end