Arun Kumar wrote:
> /usr/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: Name or
> service not known (SocketError)
...
>   from example.rb:5
> This is the error which i get now when i use 'net/http'.

This error isn't useful unless you also post your example.rb

Note that in order to talk to a https server, you will need net/https 
not net/http.

In some distributions (e.g. Ubuntu) you won't have net/https.rb until 
you install another package. For Ubuntu, apt-get install libopenssl-ruby
-- 
Posted via http://www.ruby-forum.com/.