[
https://issues.apache.org/jira/browse/CXF-7073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15536375#comment-15536375
]
Sergey Beryozkin commented on CXF-7073:
---------------------------------------
Hi, I think using a form variant works because the client runtime is not
realizing the form may be empty :-).
Please consider updating to the latest CXF 3.0.10, your original call may also
work there as expected, we did quite a few fixes to the code which sets
Content-Type when no payload is submitted.
> Unable to set Content-Type of WebClient using POST method
> ---------------------------------------------------------
>
> Key: CXF-7073
> URL: https://issues.apache.org/jira/browse/CXF-7073
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS, Transports
> Affects Versions: 3.0.4
> Reporter: Blaise Gosselin
> Priority: Blocker
>
> We are using the WebClient of CXF to connect to a web resource:
> - Client created using "WebClient.create()";
> - Content-Type set using
> "client.type(MediaType.APPLICATION_FORM_URLENCODED_TYPE);";
> - Send the request "Response info = client.invoke("POST", null);"
> The Content-Type of the request sent is always with the header "Content-Type:
> */*".
> Project architecture:
> - JDK 1.7
> - Spring 4.0.5
> - JavaEE 6.0
> Thank you in advance for your help.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)