Ruby Issue Tracking System: Issueshttps://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112012-06-05T08:06:32ZRuby Issue Tracking System
Redmine Ruby master - Feature #6546 (Closed): Net::HTTP to check for HTTP_PROXY environment setting.https://bugs.ruby-lang.org/issues/65462012-06-05T08:06:32Zdekz (Jacob Evans)dekzter@gmail.com
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/911">@nahi (Hiroshi Nakamura)</a> suggested I request the OS environment HTTP_PROXY be honoured.</p>
<p>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).</p>
<p>Having this functionality will greatly enable testing with proxies rather then monkey patching or rewriting to always use HTTP.Proxy.</p>