HttpClient Get和Post獲取其餘接口的數據

Get不含參數獲取html @Test public void doGet() throws Exception { // 建立httpclient對象 CloseableHttpClient client = HttpClients.createDefault(); // 建立get對象 HttpGet get = new HttpGet("http://www.baidu.
相關文章
相關標籤/搜索