From: Stefan Pl Date: 2012-04-20T19:47:12+09:00 Subject: How can I set automatically a proxy with credentials Hallo Forum, we wanna communicate with a server in the internet, but we are sitting behind a proxy. So our script does (not always!) fail to connect to the external server. We then get this error: C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `initialize': getaddrinfo: No such host is known. (SocketError) Unfortunately it is not a option for us to just set the proxy environment variables. The common environment variables http_proy etc are not set. Firefox for example is configured to "Use proxy system setting". IE uses a pac script to get the proxy server and uses the windows credentials for authentication. Is there somehow a way to get the "proxy system setting" with ruby like the Firefox does? I would really appreciate any help and sorry for my crappy English! Steven -- Posted via http://www.ruby-forum.com/.