From: "Bermejo, Rodrigo" Date: 2004-01-31T07:01:38+09:00 Subject: Re: open-uri and proxies Phil: you can try setting your proxy via Env variable. export HTTP_PROXY=your.proxy.goes.here I'm also behind a firewall, I tried it, the proxy was taken from the env var but I got the following error: usr/local/bin/lib/ruby/1.8/open-uri.rb:143:in `open_loop': undefined method `proxy_open' for # (NoMethodError) from /usr/local/bin/lib/ruby/1.8/open-uri.rb:105:in `open_uri' from /usr/local/bin/lib/ruby/1.8/open-uri.rb:74:in `open' from 2.rb:4 p "?" -Ronnie. Phil Tomson wrote: >I was trying to play with open-uri as shown on Whytheluckystiff's >What's Shiny and new in Ruby 1.8 article: > > require 'open-uri' > require 'yaml' > > open( "http://www.whytheluckystiff.net/why.yml" ) do |f| > feed = YAML::load( f ) > end > > >But I'm behind a firewall and need to use a proxy to get out. Any way >to use proxies with open-uri? > >Phil > >