I am trying to post an XML to an API which returns me an XML. I successfully did that by executing a simple CURL command
curl "http://my.server.com/api/identity/emails_from_ids"
--proxy dvaic.snv.fex:80 -d "<users><id>3434</id></users>"
-X POST -H 'Content-Type: application/xml' -u admin:admin
The above command executes successfully. I would like to do the same using Rails now. How to do it? I went through the Net::Http documentation but I cannot decipher much from it.
Thanks