Actions
Bug #435
closedopen-uri.rb 407 Proxy Authentication Required (OpenURI::HTTPError)
Description
=begin
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
=end
Actions
Like0
Like0Like0Like0