Help for this page

Select Code to Download


  1. or download this
    $PROXY_IP = "proxy.mydomain.com:8080";
    
    ...
    $URL = "https://www.somedomain.com/index.htm";
    $request = HTTP::Request->new('GET', "$URL");
    $response = $ua->request($request);
    
  2. or download this
    "Unsupported Request Method and Protocol"
    
  3. or download this
    use Net::SSL (); # From Crypt-SSLeay
    use LWP::UserAgent;
    ...
    my $req = HTTP::Request->new('GET','https://twitter.com');
    my $res = $ua->request($req);
    print $res->status_line;