my $text = $res->content(); #### # Use decoded_content to handle HTTP Content-Encoding my $text = $res->decoded_content( charset => 'none' );