From: Abhishek Ghose Date: 2008-06-04T20:10:42+09:00 Subject: Re: Image scraping from behind a proxy While I was writing my query I figured out what I am supposed to do :) Sorry for the thread. I hope it helps other visitors to the forum. Here's how it works now: $proxy_addr = 'proxyservername' $proxy_port = 8080 Net::HTTP::Proxy($proxy_addr, $proxy_port).start("static.flickr.com") { |http| resp = http.get("/92/218926700_ecedc5fef7_o.jpg") open("fun.jpg", "wb") { |file| file.write(resp.body) } } The above is tweaked version of the example available here: http://www.rubynoob.com/articles/2006/8/21/how-to-download-files-with-a-ruby-script It just uses Net::HTTP::Proxy instead of Net::HTTP -- Posted via http://www.ruby-forum.com/.