Switch from Mechanize to httparty.
Machanize was a bit of overkill for this.