[ 
https://issues.apache.org/jira/browse/CXF-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17869960#comment-17869960
 ] 

John Tal commented on CXF-8931:
-------------------------------

We are also running into this.

Is it that the Apache CXF TCs no longer cover this path?   

Is the recommended API to no longer use HttpClientPolicy.setAllowChunking?     

This posting says to use another version of the API.   
[https://stackoverflow.com/questions/52703349/apache-cxf-multipart-request-has-no-content-length-header]
Invocation.Builder builder = this.client.getBuilder();
WebClient.getConfig(builder).getHttpConduit().getClient().setAllowChunking(false);
response = builder.post(Entity.entity(entity,MediaType.MULTIPART_FORM_DATA));
 
Where is the 'recommend' example for the 3.6 API and which API set is it using?
 

 

> HttpClientHTTPConduit can't disable the http chunk mode
> -------------------------------------------------------
>
>                 Key: CXF-8931
>                 URL: https://issues.apache.org/jira/browse/CXF-8931
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Jim Ma
>            Assignee: Jim Ma
>            Priority: Major
>
> This works with URLConnectionHttpConduit, but this doesn't work with the new 
> HttpClientHTTPConduit. When set the HttpClientPolicy.setAllowChunking(false)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to