cxf https块关闭不起作用,我已经尝试通过配置并在java中显式

时间:2018-11-06 15:20:48

标签: cxf chunked-encoding chunking cxf-client

我正在尝试关闭Java Web应用程序的分块。我们使用apache cxf,并且正在提供肥皂服务。

  1. 我更改了配置文件中的导管设置
<http-conf:conduit 
name="*.http-conduit">
<http-conf:client
ConnectionTimeout="2000"
ReceiveTimeout="60000"
MaxRetransmits="2"
ChunkingThreshold="700000"
AllowChunking="false"/>
</http-conf:conduit>
  1. 手动设置
HTTPConduit http = (HTTPConduit)client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(2000);
httpClientPolicy.setReceiveTimeout(60000);
httpClientPolicy.setMaxRetransmits(2);
httpClientPolicy.setAllowChunking(false);
http.setClient(httpClientPolicy);

它们都不起作用,并且任何高于4k的请求我都看到传输编码:分块

另一个问题:cxf中的HTTPS和HTTP是否有不同的设置?

0 个答案:

没有答案