in reply to Re: Re: Automatic mechanization
in thread Automatic mechanization

While I do not have code directly for this, other people already did something similar which should be easily adaptable to your secondary intention (mad props to Google):

  1. Dave Roth on IE events
  2. Perlmonth on IE events
I'm still not sure that you will be able to automate changing websites, but to record and replay user actions and the sequence of requests, this should be enough.

perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web