Nick,

Thanks very much - that worked first time!!

If I could trouble you further though. I'm still having trouble
accessing plugins where the address is given svn://svn.etc.com

I have Subversion installed but every time I try to install from one
of these repositories it says (eg):

ruby script/plugin install svn://svn.seesaw.it/widgets/trunk
svn: Unknown hostname 'svn.seesaw.it'

It seems as though I have no DNS access for these addresses. HTTP ones
seem fine.

Apologies if I am not making sense - I'm a real novice!

Any help appreciated.
John



On Nov 13, 11:21 am, Nick Chistyakov <[EMAIL PROTECTED]
s.net> wrote:
> John Howard wrote:
> > Does anyone have an answer to this question? I am having the same
> > issue.
>
> > Thanks,
> > John
>
> Ok, I'll try to explain what I did to make it work.
> This `407 Proxy Authentication Required' happens because along with
> proxy address
> and proxy port two additional params must by supplied:
> 1. user
> 2. password
>
> In open-uri.rb, method OpenURI.open_http, line 216 there is a record:
> klass = Net::HTTP::Proxy(proxy.host, proxy.port)
>
> The full signature of that Net::HTTP::Proxy(...) method is:
> def Net::HTTP.Proxy(p_addr, p_port = nil, p_user = nil, p_pass = nil)
> So just add proxy.user, proxy.password:
>
> klass = Net::HTTP::Proxy(proxy.host, proxy.port, proxy.user,
> proxy.password)
>
> Note that your environment variable http_proxy must be set in a way it
> described above (http_proxy=http://user:[EMAIL PROTECTED]:port)
>
> At last, it worked for me!
> --
> Posted viahttp://www.ruby-forum.com/.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to