From: sujeet kumar Date: 2005-06-02T21:27:38+09:00 Subject: Re: How to use open uri or net/http class I tried to run the code of the site but it gives me error require 'net/http' proxy_addr = 'vsnlproxy.iitk.ac.in' proxy_port = 3128 : Net::HTTP::Proxy(proxy_addr, proxy_port).start('www.example.com') {|http| # always connect to your.proxy.addr:8080 : } Error: c:/ruby/lib/ruby/1.8/uri/common.rb:432:in `split': bad URI(is not URI?): (URI:: InvalidURIError) from c:/ruby/lib/ruby/1.8/uri/common.rb:481:in `parse' from url.rb:7 How to correct error ? On 6/2/05, Shajith wrote: > Hi! > > On 6/2/05, sujeet kumar wrote: > > Hi > > I am not able to access any http via Ruby program.I access internet > > using proxy server. On runniong following program , it generates > > error : > > > > The standard library documentation for HTTP provides some info. Check out: > http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html > > HTH! > Shajith > >