perl - Handling gzipped web content with WWW::Mechanize/::GZip -
the question simple, how handle content gzipped. , not handle content fill in forms , stuff you'd www::mechanize. i'm trying simple task:
#!/usr/bin/perl #use www::mechanize; use www::mechanize::gzip; use io::file; $mech = www::mechanize::gzip->new(agent => 'mozilla/5.0 (windows; u; msie 9.0; windows nt 9.0; en-us;)', ssl_opts => { ssl_verify_mode => io::socket::ssl::ssl_verify_none, verify_hostname => 0, }); $mech->get('https://'); print $mech->content; i've edited out url obvious reasons. anyway yields nothing. although @ 1 point did return decoded content, quite strange.
i managed decode content within www::mechanize, still have no idea how submit forms need.
Comments
Post a Comment