Advertisement
Guest User

Untitled

a guest
Aug 30th, 2017
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. use WWW;
  2. use DOM::Tiny;
  3. use Text::CSV;
  4. use URI::Encode;
  5. use HTTP::UserAgent;
  6.  
  7. my $url = 'https://www.expressvpn.com/what-is-my-ip';
  8. say (run :out, "perl", "-e", 'use LWP::UserAgent;
  9.  
  10. my $ua = LWP::UserAgent->new(timeout => 25);
  11. $ua->proxy([qw/http https/] => "socks://127.0.0.1:2225");
  12. $ua->cookie_jar({}); print $ua->get(' ~ $url.perl ~ ')->content').out.slurp: :close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement