httpClient 进行get请求
2024-09-04 20:04:14
String url = baseUrl;
logger.info("checkIfTheFolderIsExist");
CloseableHttpClient httpClient = HttpClientBuilder.create().build();
URI uri = new URIBuilder()
.setPath(url)
.setParameter("token", token)
.setParameter("folderName", folderName)
.setParameter("folderId", folderId)
.build();
HttpGet get = new HttpGet(uri);
CloseableHttpResponse response = httpClient.execute(get);
logger.info(EntityUtils.toString(response.getEntity(), "utf-8"));
可参考 https://blog.csdn.net/justry_deng/article/details/81042379
https://www.cnblogs.com/Vdiao/p/5339487.html
最新文章
- NOIP2012国王游戏
- cocos IDE 编译lua 游戏程序的环境配置
- MVC 表单提交【转】
- 学习高博SLAM(1)
- IOS调试lldb命令常用,po,
- Python中数据的保存和读取
- YTU 2617: B C++时间类的运算符重载
- yeoman的学习
- MFC中快速应用OpenCV(转)
- bzoj1937
- 【XCode7+iOS9】http网路连接请求、MKPinAnnotationView自定义图片和BitCode相关错误--备用
- HNOI2008 and ZJOI2006 排名系统
- HttpURLConnection和HttpClient
- QQ_MultiTalkServer
- 矢量量化(VQ)
- Vue使用总结
- PHP 支持8种基本的数据类型
- Netty 5 io.netty.util.IllegalReferenceCountException 异常
- Design Principle, Design Patterns And Refactoring
- Synctoy2.1使用定时任务0X1