Subject: | Handle HTTP encodings such as gzip |
In parsehttp_lwp, please change
my $text = $res->content();
to
# Use decoded_content to handle HTTP Content-Encoding
my $text = $res->decoded_content( charset => 'none' );
This will allow your module to handle compressed HTTP responses
transparently.