2
回答
问个简单问题 ··· 一时没想到
【腾讯云】校园拼团福利,1核2G服务器10元/月!>>>   
public class App {
public static void main(String[] args) throws ClientProtocolException,
IOException {
HttpClient httpClient = new DefaultHttpClient();
HttpGet get = new HttpGet("https://www.baidu.com/");
HttpResponse httpResponse = httpClient.execute(get);
System.out.println(EntityUtils.toString(httpResponse.getEntity()));
}

}


为啥不需要对ssl处理也能访问? ·· 我先看看源码, 

举报
顶部