http://www.perlmonks.org?node_id=922465


in reply to Mechanize and Cookie Confusion

You can use something like this to see what you are sending and receiving:
$m->add_handler("request_send", sub { shift->dump; return }); $m->add_handler("response_done", sub { shift->dump; return });