title: Use proxy or Tor within Heroku rails app to hide IP
body: <p>I'm using Mechanize inside a rake task that is run by a scheduler add-on to my ruby app on Heroku.  In the script, I am logging into a webpage which worked until recently when the script could no longer log-in.  When I began debugging, Mechanize shows different form fields when I run the script in the heroku console than on my local console. </p>
  
  <p><b>Local ruby console</b> shows these fields:</p>
  
  <pre><code>&gt;&gt; asf.fields.each do |f| puts f.name end
  __VIEWSTATE
  __PREVIOUSPAGE
  __EVENTVALIDATION
  login$field
  password$field
  </code></pre>
  
  <p><b>Heroku console</b> shows one additional field that does NOT appear in the html source:</p>
  
  <pre><code>&gt;&gt; asf.fields.each do |f| puts f.name end
  __VIEWSTATE 
  __PREVIOUSPAGE
  __EVENTVALIDATION
  login$field
  password$field
  captcha$txtCaptcha
  </code></pre>
  
  <p>When I issue:</p>
  
  <pre><code>&gt;&gt; asf.click_button
  </code></pre>
  
  <p><b>Update:</b>
  I tried changing the user agent to several different browser aliases with no luck.  It appears that the IP address from Heroku is causing the captcha to be served up.  Would it be possible to make a request through a proxy server or use Tor to keep the IP from being exposed?</p>