perl -MWWW::Mechanize::Shell -weshell > get http://your_site > form # Displays the form variables > click Agree # Select the right button to click, or just 'submit' if there's only 1 form > content # Show the page content > script /tmp/foobar # Save a WWW::Mechanize-based script in /tmp > q # Quit