title: Ruby, Tor and Net::HTTP::Proxy
body: <p>My apologies in advance if this is a noobish doubt: I want to use a proxy in my Ruby code to fetch a few web pages. And I want to be sneaky about it! So I am using Tor.</p>
  
  <p>I have Tor running, and I am able to use Net::HTTP.get(uri) as usual. But I can't figure out how to use Net::HTTP::Proxy to fetch the uri. I also can't figure out how using Tor will help make my fetches anonymous. </p>
  
  <p>Any help is greatly appreciated. Please don't just add a <a href="http://ruby-doc.org/stdlib-1.9.3/libdoc/net/http/rdoc/Net/HTTP.html#method-c-Proxy">link to the ruby-doc page for Net::HTTP::Proxy</a>. If I had understood that, I would not be asking this here :-)</p>
  
  <hr>
  
  <p>Another easy way to do this is using <a href="http://socksify.rubyforge.org/">SOCKSify</a>, but in this case, I receive the following error:</p>
  
  <p><code>/usr/lib/ruby/gems/1.9.2-p290/gems/socksify-1.5.0/lib/socksify.rb:189:in 'socks_authenticate': SOCKS version  not supported (SOCKSError)</code></p>
  
  <p>I have never done any network programming before. Any guidance about this will also be very helpful. Thanks :-)</p>