cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Blaise Gosselin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-7073) Unable to set Content-Type of WebClient using POST method
Date Fri, 30 Sep 2016 10:18:20 GMT

     [ https://issues.apache.org/jira/browse/CXF-7073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Blaise Gosselin updated CXF-7073:
---------------------------------
    Description: 
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.

  was:
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: */*".

Thank you in advance for your help.


> 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)

Mime
View raw message