[Rubygems-developers] Patch that fixes Proxy authorization problem (407)
anatol.pomozov at gmail.com
Thu Dec 15 15:55:17 EST 2005
I have response from one guy who tried it. And it says that storing login
and password in HTTP_PROXY makes collision with Perl Package Manager format
that expect have following EnvVariables
HTTP_PROXY, HTTP_PROXY_USER, HTTP_PROXY_PASS
So I suggest redo a little my patch and use following algorithm
http_proxy = options() || ENV['HTTP_PROXY']
if http_proxy contains login and lassword
proxy_user = extract login from http_proxy
proxy_password = extract password from http_proxy
proxy_user = HTTP['http_proxy_user']
proxy_password = ENV['http_proxy_pass']
Have gem something like central config file where could be stored http_proxy
On 12/13/05, Anatol Pomozov <anatol.pomozov at gmail.com> wrote:
> There is a patch that fixes well known problem with Proxy w authorization.
> Patched version get username and password from HTTP_PROXY env variable and
> use for open-uri and Net:HTTP authorization. Most part of the patch just new
> open-uri lib from Ruby CVS HEAD.
> I could not check that tests are ok, because they are failed for me on a
> clean cvs version. But patched RubyGems from CVS works for me ok.
> C:\Documents and Settings\anatol>gem --version
> C:\Documents and Settings\anatol>gem list -r
> *** REMOTE GEMS ***
> ....LONG LIST OF GEMS
> XMMS-Ruby (0.1.2)
> XMMS bindings for Ruby.
> yip (0.8.2)
> Adds interpolation to YAML; primarily for use in configuration files
> ZenHacks (1.0.1, 1.0.0)
> Tools and toys of mine that don't have a better home.
> anatol (http://pomozov.info)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rubygems-developers