example on how to use mechanize with cookie jars, basically:
agent.cookie_jar.save_as "cookies.yml"
agent.cookie_jar.load "cookies.yml"
to try it:
- download this zip
- go to http://bitclan.it and create an account
- put the PASSWORD in the script
- run it (
ruby eptimecha.rb
)