Can ruby support send http request or call other programs written in like c or c# or Java?

hello, everyone,
I am developping a website using Ruby on Rails which need to go to
another website to get some information to update my own database.
Does ruby have similar function support like in c#:WebRequest.Create
Request.GetResponse();
And how I call other programs in Rails?

Many thanks,

Lily

On 10 Apr 2008, at 10:44, lily wrote:

hello, everyone,
I am developping a website using Ruby on Rails which need to go to
another website to get some information to update my own database.
Does ruby have similar function support like in c#:WebRequest.Create
Request.GetResponse();
And how I call other programs in Rails?

Have you looked at Net:HTTP ?

Fred

Ruby Net::HTTP class would support such requests
http://www.ruby-doc.org/core/classes/Net/HTTP.html

there are some other classes/gems that are worth looking at:
net/http
net/https for secure connections
openssl
open-uri
hpricot

especially hpricot is very handy if you have to process the returned
html or xml