请教一下大家,原本代码里是这样的:
Request request = Request.create(url, Request.METHOD.GET);
Response response = Sender.create(request).setTimeout(30 * 1000).send();
现在需要使用代理,请问怎么添加呢?,这样吗:
Request request1 = Request.create(url_99, Request.METHOD.GET);
Http.setHttpProxy("IP", 端口);
Response response = Sender.create(request1).setTimeout(30 * 1000).send();
添加回复
请先登陆