João Neto
2012-Aug-08 15:18 UTC
[Mechanize-users] How to fetch a page with gzip enconded content
Hello... I''m trying to fetch a page like this: agent = Mechanize.new agent.gzip_enabled = true require ''logger'' logger = Logger.new $stdout agent.log = logger #agent.charset ''UTF-8'' pp agent.get( ''http://www.peixeurbano.com.br/dailydeals.xml'' ) But mechanize don''t understand this page, the result is a Mechanize::FILE object, but this content is a wellformed xml document. How to fetch a compressed page with mechanize? I''m aready have gzip and mechanize 2.5 installed on my server. Thanks for help! Atenciosamente, *Jo?o Gomes Neto* Software Developer | ZCE Tel. (85) 9675-2423 Skype: joao.gsneto -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20120808/c263b2b3/attachment.html>