03.12.2011 - A full example of how I use Mechanize can be found in the project where I require 'rubygems' require 'mechanize' abort "#{$0} login passwd .