# How to call a remote url?

**URL:** <https://www.ruby-forum.com/t/how-to-call-a-remote-url/98031>\
**Category:** Rails\
**Created:** [July 12, 2006, 3:23am UTC](https://www.ruby-forum.com/t/how-to-call-a-remote-url/98031 "2006-07-12T03:23:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Fogle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@Ryan\_Fogle](https://www.ruby-forum.com/u/Ryan_Fogle)\
**Post date:** [July 12, 2006, 3:23am UTC](https://www.ruby-forum.com/t/how-to-call-a-remote-url/98031/1 "2006-07-12T03:23:30Z")

</div>

I need to call a remote url. I need to pass in parameters, and get back  
the response. If you can just point me to a class in the framework, I  
should be able to piece together what I need.

Again, this isn’t for a link for the user, this is more of a web  
services style call. All parameters are passed in the url and I need to  
get the result back, all through code. Probably the simplest thing in  
the world if I wasn’t a noob 🙂

Thanks,

Ryan

---

<div class="post-metadata">

**Author:** ![Ryan\_Fogle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@Ryan\_Fogle](https://www.ruby-forum.com/u/Ryan_Fogle)\
**Post date:** [July 12, 2006, 3:27am UTC](https://www.ruby-forum.com/t/how-to-call-a-remote-url/98031/2 "2006-07-12T03:27:56Z")

</div>

Ryan Fogle wrote:

> I need to call a remote url. I need to pass in parameters, and get back  
> the response. If you can just point me to a class in the framework, I  
> should be able to piece together what I need.
> 
> Again, this isn’t for a link for the user, this is more of a web  
> services style call. All parameters are passed in the url and I need to  
> get the result back, all through code. Probably the simplest thing in  
> the world if I wasn’t a noob 🙂
> 
> Thanks,
> 
> Ryan

I think open-uri might be interesting for you 🙂  
[http://www.pragmatically.net/articles/2005/10/22/mini-guide-to-ruby-open-uri](http://www.pragmatically.net/articles/2005/10/22/mini-guide-to-ruby-open-uri)

---

<div class="post-metadata">

**Author:** ![Ryan\_Fogle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@Ryan\_Fogle](https://www.ruby-forum.com/u/Ryan_Fogle)\
**Post date:** [July 14, 2006, 3:39am UTC](https://www.ruby-forum.com/t/how-to-call-a-remote-url/98031/3 "2006-07-14T03:39:20Z")

</div>

anon wrote:

> Ryan Fogle wrote:
> 
> > I need to call a remote url. I need to pass in parameters, and get back  
> > the response. If you can just point me to a class in the framework, I  
> > should be able to piece together what I need.
> > 
> > Again, this isn’t for a link for the user, this is more of a web  
> > services style call. All parameters are passed in the url and I need to  
> > get the result back, all through code. Probably the simplest thing in  
> > the world if I wasn’t a noob 🙂
> > 
> > Thanks,
> > 
> > Ryan
> 
> I think open-uri might be interesting for you 🙂  
> [http://www.pragmatically.net/articles/2005/10/22/mini-guide-to-ruby-open-uri](http://www.pragmatically.net/articles/2005/10/22/mini-guide-to-ruby-open-uri)

Thanks, looks like that’s what I needed.
