From: Neil Kohl Date: 2005-01-12T11:39:10+09:00 Subject: Re: [PATCH] Authenticated proxy support for open-uri Unfortunately with scripts that need network access via an authenticating proxy you need to store the password somewhere. This patch also works with the login as a param to open(): open("http://www.ruby-lang.org/en/raa.html", :proxy => 'http://user:password@proxy.mycompany.com:8080') {|f| ... } And in the UNIX world the login can be supplied on the command line such that it's only set temporarily: $ http_proxy=http://user:password@proxy.mycompany.com:8080 ruby myscript.rb On Wed, 12 Jan 2005 11:06:10 +0900, Tanaka Akira wrote: > In article <7530f5cc0501111341480d7450@mail.gmail.com>, > Neil Kohl writes: > > > At work I'm behind a proxy server that requires authentication. After > > a bit of tinkering I came up with the attached patch that adds support > > to open-uri. > > Thank you for the patch. > > But I think an environment variable should not contain a password > because it is visible from other users. > -- > Tanaka Akira > > -- Neil Kohl nakohl@gmail.com