Project

General

Profile

Actions

Feature #6546

closed

Net::HTTP to check for HTTP_PROXY environment setting.

Added by dekz (Jacob Evans) over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:45426]

Description

nahi (Hiroshi Nakamura) 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.


Files

net.http.proxy_from_env.patch (5.95 KB) net.http.proxy_from_env.patch drbrain (Eric Hodel), 06/09/2012 10:00 AM
net.http.proxy_from_env.2.patch (8.01 KB) net.http.proxy_from_env.2.patch drbrain (Eric Hodel), 06/12/2012 09:17 AM
net.http.proxy_from_env.2.no_env_by_default.patch (7.42 KB) net.http.proxy_from_env.2.no_env_by_default.patch Patch 2 without default of p_addr = :ENV drbrain (Eric Hodel), 06/13/2012 06:36 AM
net.http.proxy_from_env.3.patch (23.6 KB) net.http.proxy_from_env.3.patch Patch using proxy detection from open-uri drbrain (Eric Hodel), 06/28/2012 09:42 AM

Related issues

Related to Ruby master - Bug #4388: open-uriで環境変数http_proxyを使うときに認証付きのProxyが使えませんRejectedActions
Related to Ruby master - Feature #8771: Start does not use proxy configuration form ENV variablesClosednaruse (Yui NARUSE)Actions
Has duplicate Ruby master - Feature #12921: Retrieve user and password for proxy from envClosedActions
Actions

Also available in: Atom PDF