Hi, Does anyone know how to use gem with a proxy? In firefox my proxy setting is set similar to this: http://proxy.abc.com/proxy.pac However, when I try: gem update -p http://proxy.abc.com/proxy.pac I get: Upgrading installed gems... Updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem ... (OpenURI::HTTPError) 404 Not Found If I try to use the port instead: gem update -p http://proxy.abc.com:3128 It gets further before it stops: Upgrading installed gems... Updating Gem source index for: http://gems.rubyforge.org Attempting remote upgrade of actionmailer Attempting remote installation of ''actionmailer'' Install required dependency actionpack? [Yn] Updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem ... (Errno::ETIMEDOUT) A connection attempt failed because the connected party did not properly res pond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) Any ideas? Thanks, Abdullah
On Mon, 22 Nov 2004 12:16:49 -0800 (PST), Abdullah Jibaly <amjibaly-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > Does anyone know how to use gem with a proxy? In > firefox my proxy setting is set similar to this: > http://proxy.abc.com/proxy.pac > > However, when I try: > > gem update -p http://proxy.abc.com/proxy.pac >If you actually download and view that URL in your browser, you''ll see the _real_ address of your proxy server. This .pac file is a proxy autoconfiguration script--not the proxy server itself. After you''ve got that, the easiest thing to do is to set your HTTP_PROXY environment variable to the correct setting (e.g. export HTTP_PROXY=http://proxy.abc.com:8808) -- Chad Fowler http://chadfowler.com http://rubycentral.org http://rubygarden.org http://rubygems.rubyforge.org (over 20,000 gems served!)
Also, if your proxy server is using NTLM authentication, you''ll want to download apserver http://apserver.sourceforge.net/ On Tue, 23 Nov 2004 14:46:21 -0500, Chad Fowler <chadfowler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, 22 Nov 2004 12:16:49 -0800 (PST), Abdullah Jibaly > <amjibaly-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > > Does anyone know how to use gem with a proxy? In > > firefox my proxy setting is set similar to this: > > http://proxy.abc.com/proxy.pac > > > > However, when I try: > > > > gem update -p http://proxy.abc.com/proxy.pac > > > > If you actually download and view that URL in your browser, you''ll see > the _real_ address of your proxy server. This .pac file is a proxy > autoconfiguration script--not the proxy server itself. > > After you''ve got that, the easiest thing to do is to set your > HTTP_PROXY environment variable to the correct setting (e.g. export > HTTP_PROXY=http://proxy.abc.com:8808) > > -- > > Chad Fowler > http://chadfowler.com > http://rubycentral.org > http://rubygarden.org > http://rubygems.rubyforge.org (over 20,000 gems served!) > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cheers Koz
Thanks, it worked! I''m wondering why it didn''t when I used the -p flag though, since I used the actual address with that too. --- Chad Fowler <chadfowler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, 22 Nov 2004 12:16:49 -0800 (PST), Abdullah > Jibaly > <amjibaly-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > > Does anyone know how to use gem with a proxy? In > > firefox my proxy setting is set similar to this: > > http://proxy.abc.com/proxy.pac > > > > However, when I try: > > > > gem update -p http://proxy.abc.com/proxy.pac > > > > If you actually download and view that URL in your > browser, you''ll see > the _real_ address of your proxy server. This .pac > file is a proxy > autoconfiguration script--not the proxy server > itself. > > After you''ve got that, the easiest thing to do is to > set your > HTTP_PROXY environment variable to the correct > setting (e.g. export > HTTP_PROXY=http://proxy.abc.com:8808) > > > -- > > Chad Fowler > http://chadfowler.com > http://rubycentral.org > http://rubygarden.org > http://rubygems.rubyforge.org (over 20,000 gems > served!) > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >