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 <demerzel / gmail.com> wrote:
> Hi!
> 
> On 6/2/05, sujeet kumar <sujeetkr / gmail.com> 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
> 
>