in reply to Testing large legacy CGI app

why do you need mechanize to test a CGI? Calling the script directly with URL parameters will do too and is far better for testing.

You could even "automatize" this by logging the passed parameters to create your test scripts.

In the end it's only a state machine with in- and output.

Have a look into the network console for of your browser (S-C-q in my FF) to compare details.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!