SHARE
TWEET

Untitled

a guest Mar 20th, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. WebClient webClient = new WebClient(BrowserVersion.FIREFOX_17);
  2.     ProxyConfig proxyConfig = new ProxyConfig("127.0.0.1", 9060, true);
  3.     webClient.getOptions().setProxyConfig(proxyConfig);
  4.     page = webClient.getPage("http://ipinfo.io/ip");
  5.     System.out.println(page.asText());
RAW Paste Data
Top