$mech->get($foo, ':content_file'=>$filename); my $file_content = $mech->get($foo);