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

**URL:** <https://www.ruby-forum.com/t/how-to-write-an-outgoing-url-call-and-get-the-xml-response/183122>\
**Category:** Rails\
**Created:** [February 8, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/how-to-write-an-outgoing-url-call-and-get-the-xml-response/183122 "2010-02-08T17:43:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [February 8, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/how-to-write-an-outgoing-url-call-and-get-the-xml-response/183122/1 "2010-02-08T17:43:47Z")

</div>

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

[http://999:removed\_email\_address@domain.invalid/apis/media.php?action=createCollection&collection\_id=123](http://999:removed_email_address@domain.invalid/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)

 180 2 myNewCollection this is my new sports collection static 7fd77f35ba63b07a19d8eb995d66215f 123 /123/180

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
