sub meta_refresh
{
my $mech = shift;
my $expected_url = shift;
my $url;
if($mech->content() =~ /get( $expected_url );
ok($mech->success(), "URL loaded successfully");
}
####
# Code to cause the refresh to appear not shown.
# Check the refresh and follow
meta_refresh($mech, '/index.cgi?rm=home');