From: Chad Fowler Date: 2004-10-25T20:07:24+09:00 Subject: Re: gems and http proxy authentication On Mon, 25 Oct 2004 19:01:32 +0900, Eduardo Fernandez Corrales wrote: > Hello, > > I am trying to use gems behind a proxy (squid) that requires > user/password for internet access > > I have set the http_proxy environment variable like this: > > http_proxy=http://login:password@proxy-hostname:8080 > > But gems gives the following error: > > C:\rubygems-0.8.1>gem query --remote > > *** REMOTE GEMS *** > Updating Gem source index for: http://gems.rubyforge.org > ERROR: While executing gem ... (OpenURI::HTTPError) > 407 Proxy Authentication Required > > I have checked the docs, but have not found any parameter or option in > the config file that can solve this. > > Am I overlooking something? > > Thanks in advance. > -- > Eduardo Fern�ndez Corrales > > Eduardo, I'm guessing you're the first person to try running gems behind a proxy that requires authentication. Unfortunately, I don't have one to even test with. The core of the question is: how do you make open-uri work with a proxy that requires authentication? I don't know the answer to that question, but finding the answer will help us solve this problem for you. I'll try to do some research on my own and come up with something. ---- Chad Fowler http://chadfowler.com http://rubycentral.org http://rubygarden.org http://rubygems.rubyforge.org (over 20,000 gems served!)