my $response = $useragent->get($url); my $stored_as_file = $response->as_string; #### my $response = HTTP::Response->parse( $stored_as_file );