Help for this page

Select Code to Download


  1. or download this
    $mech->proxy(['http'],  'http://127.0.0.1:8118');
    $mech->proxy(['https'],  undef);
    
  2. or download this
    #!/usr/bin/env perl
    use WWW::Mechanize;
    ...
    
    $mech->get($url);
    print $mech->content;
    
  3. or download this
    $ENV{'HTTPS_PROXY'} = 'http://127.0.0.1:8118';
    my $mech = WWW::Mechanize->new(
    ...
      noproxy=>0
    );
    $mech->env_proxy;