Advertisement
dereksir

Untitled

Mar 19th, 2024 (edited)
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. public class Main {
  2.     public static void main(String[] args) {
  3.         //...
  4.  
  5.         // create Chrome Web Client instance using specified proxy settings.
  6.         try (final WebClient webClient = new WebClient(BrowserVersion.CHROME, PROXY_HOST, PROXY_PORT)) {
  7.            //...
  8.         } catch (Exception e) {
  9.             e.printStackTrace();
  10.         }
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement