I use Mechanize inside the rake task, which is launched by the scheduler add-in for my ruby Heroku application. In the script, I went to a web page that worked until recently, when the script could no longer log in. When I started debugging, Mechanize shows different form fields when I run the script in heroku console than on my local console.
Local console ruby shows these fields:
>> asf.fields.each do |f| puts f.name end
__VIEWSTATE
__PREVIOUSPAGE
__EVENTVALIDATION
login$field
password$field
The Heroku console shows one additional field that is NOT displayed in the html source:
>> asf.fields.each do |f| puts f.name end
__VIEWSTATE
__PREVIOUSPAGE
__EVENTVALIDATION
login$field
password$field
captcha$txtCaptcha
When I go out:
>> asf.click_button
Update:
. , IP- Heroku . - Tor, IP ?