in the example below, is our corporate firewall the reason I for the
error?
if so, how can I configure ruby to use the firewall specified in
http_proxy?
Details:
I’m trying to connect to an outside http resource but I suspect our
corporate firewall is blocking the normal route:
$ ruby -rbio -e ‘reg = Bio::Registry.new’
/usr/lib/ruby/1.8/net/http.rb:560:in initialize': No route to host - connect(2) (Errno::EHOSTUNREACH) from /usr/lib/ruby/1.8/net/http.rb:560:in open’
from /usr/lib/ruby/1.8/net/http.rb:560:in connect' from /usr/lib/ruby/1.8/timeout.rb:48:in timeout’
from /usr/lib/ruby/1.8/timeout.rb:76:in timeout' from /usr/lib/ruby/1.8/net/http.rb:560:in connect’
from /usr/lib/ruby/1.8/net/http.rb:553:in do_start' from /usr/lib/ruby/1.8/net/http.rb:542:in start’
from /usr/lib/ruby/1.8/net/http.rb:440:in start' from /usr/lib/ruby/1.8/bio/io/registry.rb:190:in read_remote’
from /usr/lib/ruby/1.8/bio/io/registry.rb:126:in initialize' from -e:1:in new’
from -e:1
$ ruby -v
ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux]
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 7.10
Release: 7.10
Codename: gutsy
The environment variable http_proxy is configured:
To demonstrate that I can get the proxy to work, I picked google as a
simple example. Here’s what I can do with
elinks and with the http_proxy environment variable set:
corporate firewall is blocking the normal route:
from /usr/lib/ruby/1.8/net/http.rb:542:in `start’
Distributor ID: Ubuntu
for a more simple test also appreciated.
Regards,
Robert
–
Ed Howland
“The information transmitted is intended only for the person or entity
to which it is addressed and may contain proprietary, confidential
and/or legally privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact
the sender and delete the material from all computers.”
“The information transmitted is intended only for the person or entity
to which it is addressed and may contain proprietary, confidential
and/or legally privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact
the sender and delete the material from all computers.”
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.