Advertisement
dereksir

Untitled

Apr 29th, 2024 (edited)
1,312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. public class Main {
  2.  
  3.     String run(String url) throws IOException {
  4.         // define your proxy details
  5.         String proxyHost = "140.238.247.9";
  6.         int proxyPort = 8100;
  7.  
  8.         // create a proxy object and pass in the necessary details
  9.         Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort));
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement