|
@@ -84,7 +84,7 @@ public class HkspSearch {
|
|
|
.header("user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36")
|
|
.header("user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36")
|
|
|
.header("x-requested-with", "xmlhttprequest")
|
|
.header("x-requested-with", "xmlhttprequest")
|
|
|
.timeout(120000) // 设置超时时间
|
|
.timeout(120000) // 设置超时时间
|
|
|
- //.setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(PROXY_HOST, PROXY_PORT)))
|
|
|
|
|
|
|
+ .setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(PROXY_HOST, PROXY_PORT)))
|
|
|
.form(params)
|
|
.form(params)
|
|
|
.execute();
|
|
.execute();
|
|
|
|
|
|