perl_help26 has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I would like to force "get" of package www::mechanize to use http/1.0 How can i do that ? My current code is:
my $mech = WWW::Mechanize->new(); $mech->get ("$url");
It sounds easy but I can't seem to find the solution. Please help! Thanks
Solution:
use WWW::Mechanize; require LWP::Protocol::http10; LWP::Protocol::implementor('http', 'LWP::Protocol::http10');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use HTTP/1.0 instead of HTTP/1.1 in WWW::Mechanize
by chinarulez (Acolyte) on Nov 10, 2015 at 16:01 UTC | |
by perl_help26 (Beadle) on Nov 11, 2015 at 13:44 UTC | |
|
Re: use HTTP/1.0 instead of HTTP/1.1 in WWW::Mechanize
by Anonymous Monk on Nov 11, 2015 at 01:01 UTC | |
by perl_help26 (Beadle) on Nov 12, 2015 at 07:49 UTC |