Help for this page

Select Code to Download


  1. or download this
    use WWW::Mechanize;
    my $mech = WWW::Mechanize->new();
    $mech->proxy(['http', 'https'], 'http://xx.xx.x.xx:xx');
    print $mech->get("https://example.com");
    
  2. or download this
    use LWP::UserAgent;
    $ua = LWP::UserAgent->new;
    $ua->proxy(['http', 'https'], 'http://xx.xx.x.xx:xx');
    print $ua->get("https://example.com");