From: "naruse (Yui NARUSE)" Date: 2012-06-12T02:34:49+09:00 Subject: [ruby-core:45572] [ruby-trunk - Feature #6546] Net::HTTP to check for HTTP_PROXY environment setting. Issue #6546 has been updated by naruse (Yui NARUSE). drbrain (Eric Hodel) wrote: > I did not add it to the patch, but if this patch is accepted should Net::HTTP.new be changed so that p_addr = :ENV by default? > > This would allow users to use their proxy by default. The patch still needs a fix to use HTTP_PROXY, so it should be. But setting password through environment variable is not acceptable, because they are visible from other users on some OSs as #4388 says (in Japanese). ---------------------------------------- Feature #6546: Net::HTTP to check for HTTP_PROXY environment setting. https://bugs.ruby-lang.org/issues/6546#change-27169 Author: dekz (Jacob Evans) Status: Feedback Priority: Normal Assignee: naruse (Yui NARUSE) Category: lib Target version: 2.0.0 @nahi suggested I request the OS environment HTTP_PROXY be honoured. Open-uri checks for this environment setting and acts according whereas Net::HTTP does not. Not having Net::HTTP check for this condition sets precedence and stops the implementation of other environment settings (such as JRuby and JVM -Dhttp.proxyHost). Having this functionality will greatly enable testing with proxies rather then monkey patching or rewriting to always use HTTP.Proxy. -- http://bugs.ruby-lang.org/