HttpClient Get和Post获取其余接口的数据

Get不含参数获取html @Test public void doGet() throws Exception { // 建立httpclient对象 CloseableHttpClient client = HttpClients.createDefault(); // 建立get对象 HttpGet get = new HttpGet("http://www.baidu.
相关文章
相关标签/搜索