From: Arup Rakshit Date: 2013-01-22T23:52:34+09:00 Subject: Getting error "getaddrinfo: No such host is known. (Socke tError)" with mechanize gem I tried the below code: require 'mechanize' agent = Mechanize.new{|a| a.ssl_version, a.verify_mode = 'SSLv3', OpenSSL::SSL::VERIFY_NONE} page = agent.get "https://www.google.com/" page=page.link_with(:dom_class => "button").click() But my bad getting the below error within my company,but the same was running in my home desktop well. Any suggestion how to break firewall/stie blocker and do the work in company also? D:\WIPData\Ruby\Scripts>mechanize_dowload.rb C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net/http/persist ent/ssl_reuse.rb:29:in `initialize': getaddrinfo: No such host is known. (Socke tError) from C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net /http/persistent/ssl_reuse.rb:29:in `open' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net /http/persistent/ssl_reuse.rb:29:in `block in connect' from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:54:in `timeout' from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:99:in `timeout' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net /http/persistent/ssl_reuse.rb:29:in `connect' from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:755:in `do_start' from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:750:in `start' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net /http/persistent.rb:628:in `start' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net /http/persistent.rb:570:in `connection_for' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net /http/persistent.rb:926:in `request' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mechanize-2.5.1/lib/mechanize/h ttp/agent.rb:258:in `fetch' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mechanize-2.5.1/lib/mechanize.r b:407:in `get' from D:/WIPData/Ruby/Scripts/mechanize_dowload.rb:5:in `
' D:\WIPData\Ruby\Scripts> The same script ran perfectly on my personal machine,but not in my company. Could you please me to fix the same? Thanks in advance -- Posted via http://www.ruby-forum.com/.