title: Mechanize Problems Connecting to HTTP Proxy...Ruby
body: <p>I have a proxy set up and running completely fine on my local host.  I can connect to the proxy completely fine running this code.</p>
  
  <pre><code>Net::HTTP::Proxy('http://localhost', 1234).start  #do whatever I want after this point
  </code></pre>
  
  <p>I can connect to it through a browser completely fine, however when I go to run it on mechanize it completely fails.  Here's the code.</p>
  
  <pre><code>require 'mechanize'
  agent=Mechanize.new
  agent.set_proxy('localhost', 1234)
  agent.get('http://google.com')   #or any website for that matter
  </code></pre>
  
  <p>Here's the error I get back</p>
  
  <pre><code>Net::HTTP::Persistent::Error: too many connection resets (due to end of file reached - EOFError) after 0 requests on 22249020, last used 1376802493.5352573 seconds ago
  </code></pre>
  
  <p>I've read that the versions after 1.0.0 have difficulties connecting to http proxies, but I need to and I'm currently running version 2.7.2.  Is there anything I can do to connect to a proxy.</p>