How to write an outgoing URL call and get the XML response ?

I have to write a call from my rails app to an external URL :

http://999:madmax@api.bingostore.com/apis/media.php?action=createCollection&collection_id=123

then I should get back an XML answer , to be parsed (I need to reuse these info into my web app)

<collection>   <id>180</id>   <partner_id>2</partner_id>   <name>myNewCollection</name>   <description>this is my new sports collection</description>   <collection_type>static</collection_type>   <thumbnail_media_id/>   <token>7fd77f35ba63b07a19d8eb995d66215f</token>   <parent_collection_id>123</parent_collection_id>   <path>/123/180</path> </collection>

where should I look for info on it ? as I don't supply a return URL, I don't know how to handle the answer in Rails ...

thanks for your help..

yves

You can use Net::HTTP, which is part of the standard Ruby library, to make the external request. REXML, also part of the standard library, can parse it, though I’d suggest using Nokogiri for that instead.

thanks a lot, I am going to have a look at Nokogiri

yves