美文网首页
httpClient

httpClient

作者: ModiCheung | 来源:发表于2018-08-31 16:03 被阅读0次
    //1、模拟打开浏览器
    CloseableHttpClient httpClient = HttpClients.createDefault();
    //2、创建Get对象
    HttpGet httpGet = new HttpGet("http://www.baidu.com/s?wd=HTTPClient");
    System.out.println("executing request " + httpGet.getURI());

相关文章

网友评论

      本文标题:httpClient

      本文链接:https://www.haomeiwen.com/subject/trtewftx.html