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 -- Posted via http://www.ruby-forum.com/.
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, > > RyanI think open-uri might be interesting for you :) http://www.pragmatically.net/articles/2005/10/22/mini-guide-to-ruby-open-uri -- Posted via http://www.ruby-forum.com/.
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-uriThanks, looks like that''s what I needed. -- Posted via http://www.ruby-forum.com/.