HttpClient client = new HttpClient(); client.getHttpConnectionManager().getParams().setConnectionTimeout(10000); HttpClient client = new HttpClient(); client.getHttpConnectionManager().getParams().setSoTimeout(15000); Protocol ignoreSSLProtocol = new Protocol("https", new TrustAllSocketFactory(), 443); HttpClient client = new HttpClient(); client.getHostConfiguration().setHost("example.com", 443, ignoreSSLProtocol);


上一篇:
下一篇:
切换中文