Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $req = new HTTP::Request(GET => 'http://www.perlmonks.com/');
    my $res = $ua->request($req); 
    print $res->content if ($res->is_success);
    
  2. or download this
    use strict;
    use warnings;
    ...
    my $req = new HTTP::Request(GET => 'http://www.perlmonks.com/');
    my $res = $ua->request($req); 
    print $res->content if ($res->is_success);
    
  3. or download this
    function FindProxyForURL (url, host)
    {
    ...
    
      return "PROXY proxy.mycompany.intranet:8080";
    }