Curl::Multi post


#1

I’m having trouble finding documentation on the curl-multi gem.

I need to post some xml to a webservice - I’ve done this in PHP
before.

so far :

require ‘curl-multi’
curl = Curl::Multi.new
curl.post(“url”, “xml”, ?)

The question mark in the code above is what I’m having trouble with.
With nothing there I get a “wroong number of arguments - 2 for 3”
error…

I know it’s something absurdly simple that I am missing…


#2

Nevermind - I’m going to use the Curl::Easy way instead.