Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebClient webClient = new WebClient(BrowserVersion.FIREFOX_17);
- ProxyConfig proxyConfig = new ProxyConfig("127.0.0.1", 9060, true);
- webClient.getOptions().setProxyConfig(proxyConfig);
- page = webClient.getPage("http://ipinfo.io/ip");
- System.out.println(page.asText());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement