From: redmine@... Date: 2011-04-20T11:25:40+09:00 Subject: [ruby-core:35821] [Ruby 1.8 - Bug #435] open-uri.rb 407 Proxy Authentication Required (OpenURI::HTTPError) Issue #435 has been updated by Ben Bytheway. Can this rejection be rethought? This use of proxy url with user and password is a currently accepted way of being able to authenticate to a proxy. Because open-uri doesn't honor this style of url, there is literally no way for me to use any ruby application which relies on open-uri to access web resources. ---------------------------------------- Bug #435: open-uri.rb 407 Proxy Authentication Required (OpenURI::HTTPError) http://redmine.ruby-lang.org/issues/435 Author: Anonymous Status: Rejected Priority: Normal Assignee: Category: Target version: Even if i set in /usr/lib/ruby/1.8/open-uri.rb proxy settings like that: module OpenURI Options = { :proxy => "http://user:password@192.168.1.1:8080", :progress_proc => true, :content_length_proc => true, :http_basic_authentication => true } i will get 407 error. To fix that replace: if proxy klass = Net::HTTP::Proxy(proxy.host, proxy.port) end with: if proxy klass = Net::HTTP::Proxy(proxy.host, proxy.port, proxy.user, proxy.password) end -- http://redmine.ruby-lang.org