Issue #6546 has been updated by drbrain (Eric Hodel).

File net.http.proxy_from_env.patch added
Category set to lib
Assignee set to naruse (Yui NARUSE)
Target version set to 2.0.0

Here is a patch, it is based on code from net-http-persistent.

It tries both http_proxy and HTTP_PROXY to support windows users (who sometimes use the lowercase version).
----------------------------------------
Feature #6546: Net::HTTP to check for HTTP_PROXY environment setting.
https://bugs.ruby-lang.org/issues/6546#change-27120

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/