2
回答
问个简单问题 ··· 一时没想到
百度AI开发者大赛带你边学边开发,赢100万奖金,加群:418589053   
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处理也能访问? ·· 我先看看源码, 

举报
顶部