print $mech->response()->headers()->as_string();