Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- String run(String url) throws IOException {
- // define your proxy details
- String proxyHost = "140.238.247.9";
- int proxyPort = 8100;
- // create a proxy object and pass in the necessary details
- Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement