Apache Http Client slower than browser download

こ雲淡風輕ζ 提交于 2019-12-04 18:22:26

I had the same problem; the fix was implementing the suggestion from here: https://stackoverflow.com/a/35458078/9204142, i.e. use disableContentCompression() or contentCompressionEnabled=false at the RequestConfig level. After the fix the speed matched the one of curl.

As I've used Apache Camel the fix implied adding ?httpClient.contentCompressionEnabled=false in the URI of the Endpoint.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!