libwww-perl / WWW-Mechanize

Handy web browsing in a Perl object
https://metacpan.org/pod/WWW::Mechanize
Other
68 stars 52 forks source link

Clarify documentation for the encoding of content_file #363

Closed bscan closed 1 year ago

bscan commented 1 year ago

Currently, content_file contains the encoded version of a web response. This causes the $mech->content() method and the :content_file to have different encodings. Given that the majority of the web is using compression, it appears that most users would want to use $mech->content() or $mech->save_content() instead of :content_file. More importantly, this difference should be noted since the word "content" in either case is not clearly specified as encoded or decoded.