# Script/console and http-proxy with Authentication

**URL:** <https://www.ruby-forum.com/t/script-console-and-http-proxy-with-authentication/93044>\
**Category:** Rails\
**Created:** [April 26, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/script-console-and-http-proxy-with-authentication/93044 "2007-04-26T22:15:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k9ert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/bbe5ce/32.png) [@k9ert](https://www.ruby-forum.com/u/k9ert)\
**Post date:** [April 26, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/script-console-and-http-proxy-with-authentication/93044/1 "2007-04-26T22:15:30Z")

</div>

Hi group,

my gem ist working like a charm with http\_proxy (and friends)  
environment-variables as described here  
[http://blog.pomozov.info/posts/the-end-of-gem-vs-proxy-war.html](http://blog.pomozov.info/posts/the-end-of-gem-vs-proxy-war.html)

## But I have a problem (on windows) with

> ruby script/plugin discover  
> c:/ruby/lib/ruby/1.8/open-uri.rb:287:in `open_http': 407 Proxy Authentication Required ( Der ISA Server erfordert Autorisierung, um die Anfrage durchfhren zu k?nen. Der Zugriff auf den Webproxydienst wird verweigert. ) (OpenURI::HTTPError) from c:/ruby/lib/ruby/1.8/open-uri.rb:626:in `buffer\_open’  
> from c:/ruby/lib/ruby/1.8/open-uri.rb:164:in `open_loop' from c:/ruby/lib/ruby/1.8/open-uri.rb:162:in `catch’  
> from c:/ruby/lib/ruby/1.8/open-uri.rb:162:in `open_loop' from c:/ruby/lib/ruby/1.8/open-uri.rb:132:in `open\_uri’  
> from c:/ruby/lib/ruby/1.8/open-uri.rb:528:in `open' from c:/ruby/lib/ruby/1.8/open-uri.rb:30:in `open’  
> from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/  
> plugin.rb:687:in `scrape' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/ plugin.rb:661:in `parse!’  
> from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/  
> plugin.rb:660:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/ plugin.rb:660:in `parse!’  
> from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/  
> plugin.rb:476:in `parse!' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/ plugin.rb:492:in `parse!’  
> from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/  
> plugin.rb:918  
> from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
> `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
> from script/plugin:3

* * *

Any hints?

Thanks

Kim
