gems and http proxy authentication

  • Thread starter Eduardo Fernandez Corrales
  • Start date
E

Eduardo Fernandez Corrales

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.
 
C

Chad Fowler

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, 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!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top