From: intc_ctor@... (Phil Tomson) Date: 2004-01-31T08:14:53+09:00 Subject: Re: open-uri and proxies intc_ctor@yahoo.com (Phil Tomson) wrote in message news:... > 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? > Found the recipe, here it is if you need it: open("http://www.ruby-lang.org",:proxy=>"http://your.proxy.here:8080") do |f| f.each_line {|line| p line } end Phil