Help for this page

Select Code to Download


  1. or download this
    my $ua = new LWP::UserAgent;
    my $proxy = "http://112.137.164.232:3128";
    $ua->proxy(['https'], $proxy);
    ...
    my $stuff = $ua->request($req);
    print "Content-type: text/html\n\n";
    print $stuff->content;
    
  2. or download this
    Can't connect to sci-hub.org:80 (Connection timed out)
    
    LWP::Protocol::http::Socket: connect: Connection timed out at /usr/sha
    +re/perl5/LWP/Protocol/http.pm line 41