Advertisement
Guest User

Untitled

a guest
Mar 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  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());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement