[ https://issues.apache.org/jira/browse/CXF-8896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17953288#comment-17953288 ]
Andriy Redko edited comment on CXF-8896 at 5/22/25 1:16 AM: ------------------------------------------------------------ The documentation has been updated to reflect HttpClient behavior: [https://cxf.apache.org/docs/client-http-transport-including-ssl-support.html]. [~info-apa...@ch2o.info] please let me know if something is still missing there, was (Author: reta): The documentation has been updated to reflect HttpClient behavior: [https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49941.] [~info-apa...@ch2o.info] please let me know if something is still missing there, > http client sends some strange HTTP/1.1 and HTTP/2 mix headers > -------------------------------------------------------------- > > Key: CXF-8896 > URL: https://issues.apache.org/jira/browse/CXF-8896 > Project: CXF > Issue Type: Bug > Components: Transports > Affects Versions: 4.0.2 > Reporter: Jim Ma > Priority: Major > Fix For: 4.0.3 > > > From CXF 4.0.1, without the force http version with > > {code:java} > ((BindingProvider)port).getRequestContext().put("org.apache.cxf.transport.http.forceVersion", > "1.1"), {code} > The http client sends request with strange headers : > {code:java} > POST /jaxws-securityDomain2/authz HTTP/1.1 > Connection: Upgrade, HTTP2-Settings > Content-Length: 207 > Host: 127.0.0.1:23088 > HTTP2-Settings: AAEAAEAAAAIAAAABAAMAAABkAAQBAAAAAAUAAEAA > Upgrade: h2c > Accept: */* > Content-Type: text/xml; charset=UTF-8 > SOAPAction: "" > User-Agent: Apache-CXF/4.0.1 {code} > This works in CXF 4.0.0 and this commit seems introduce issue: > [https://github.com/apache/cxf/commit/9b36a4bc996615e0ed02795c74167586a2bb11df] > > If force the HTTP/1.1 with property : > org.apache.cxf.transport.http.forceVersion , it works. But this is a backward > compatible issue and we should still support HTTP/1.1 by default. > > -- This message was sent by Atlassian Jira (v8.20.10#820010)