fisher has asked for the wisdom of the Perl Monks concerning the following question:

I have here a web server which generates some dynamic content. The dynamic pages constantly touched by other developers and I finally came to decision to test some critical functionality from outside using simple http client and something like Test::More. So I found Test::WWW::Mechanize but can't figure it out how to

  1. ensure that some URI is closed for unauthorized access. I mean there should be a method to check the HTTP code (401 or 403)
  2. check redirection (HTTP 302) and check its destination url

Maybe there is another test framework for this? Please sugest if so.