httpclientutil icon indicating copy to clipboard operation
httpclientutil copied to clipboard

该项目基于HttpClient-4.4.1封装的一个工具类。提供了更为简单的GET、POST及上传下载等功能。同时支持插件式配置Http-Header(包含自定义header)、配置SSL和Proxy等。

Results 25 httpclientutil issues
Sort by recently updated
recently updated
newest added

使用作者的demo复现的bug,下载代码后找到test下面的Demo类,注释掉 `// //最简单的使用: // String html = HttpClientUtil.get(HttpConfig.custom().url(url).client(HCB.custom().sslpv(SSLProtocolVersion.TLSv1_2).ssl().build())); // System.out.println(html);` 然后运行就会报错 `Exception in thread "main" com.arronlong.httpclientutil.exception.HttpProcessException: javax.net.ssl.SSLException: Received fatal alert: protocol_version at com.arronlong.httpclientutil.HttpClientUtil.execute(HttpClientUtil.java:462) at com.arronlong.httpclientutil.HttpClientUtil.send(HttpClientUtil.java:377) at com.arronlong.httpclientutil.HttpClientUtil.get(HttpClientUtil.java:102) at com.arronlong.httpclientutil.test.Demo.main(Demo.java:77)` 建议作者修复这个bug前,谨慎使用线程池功能...

get请求使用map传递参数,最终参数并未发送出去。修复get方法通过map传参失败bug

看了lz的所有使用说明没有发现设置body的地方啊

Exception in thread "main" com.arronlong.httpclientutil.exception.HttpProcessException: javax.net.ssl.SSLException: Received fatal alert: protocol_version at com.arronlong.httpclientutil.HttpClientUtil.execute(HttpClientUtil.java:462) at com.arronlong.httpclientutil.HttpClientUtil.send(HttpClientUtil.java:377) at com.arronlong.httpclientutil.HttpClientUtil.post(HttpClientUtil.java:128) at com.github.binarywang.demo.wx.mp.utils.HttpRequestUtilsTest.main(HttpRequestUtilsTest.java:60) Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version //最简单的使用: HCB hcb = HCB.custom()...

Bumps httpclient from 4.4.1 to 4.5.13. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.apache.httpcomponents:httpclient&package-manager=maven&previous-version=4.4.1&new-version=4.5.13)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...

dependencies

问题描述: 使用这个请求框架很方便构造,但是遇到了以下的问题(对方服务器后台语言采用PHP): 1.本地windows、本地mac都能请求通并且对方服务器能够正常返回。 2.但是扔到阿里云服务器,对方接收到的请求体就为空,试过对接过很多甲方都是这样。但是甲方使用java语言就能正常使用。 请问这是啥问题。

to be confirmed

单个case运行没问题,连续运行的情况最后一个post请求的map 数据不全,这是为什么 比如 ` Map formdata=new HashMap(); formdata.put("pageNo","0"); formdata.put("pageSize","20");` 但是看请求的info 是只有一个键值对,我的几个case用的是同一个client

to be confirmed

怎么关闭你项目里面那个log4j呢 java.io.FileNotFoundException: /logs/httpclient/httputil.log (No such file or directory)

bug

我用这个调用微信接口。有些接口是推xml数据,不需要key,请问有没有设置的方法 因为我看现在好像只能是推key-value的map

enhancement