当前位置: 首页 > 工具软件 > Jodd > 使用案例 >

jodd使用代理

仲孙鸿飞
2023-12-01

HttpConnectionProvider connectionProvider=new SocketHttpConnectionProvider();
ProxyInfo proxyInfo = ProxyInfo.httpProxy(host_addr, port, “user”, “pwd”);
connectionProvider.useProxy(proxyInfo);

//提交查询请求
HttpResponse response = HttpRequest.post(Referer).open(connectionProvider).header(“User_Agent”,user_agent).form().send

 类似资料: