I read the discussion at stack flow and would like to know how a  GET request
would be processed without content-type header  with JAX-RS

According to RFC 2616 Fielding  
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
<http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html>  

The definition of *Accept *header for the media types which are acceptable
for the response by the client
*Content-Type* entity-header field indicates the media type of the
*entity-body* sent to the recipient or, in the case of the HEAD method, the
media type that would have been sent had the request been a GET. 

Looks like we indeed need a content-type header as part of GET.

JAX-RS 
@Consumes maps to the Content-Type Header
@Produces maps to the Accept Header

 http/http4 loses the Content-Type  header in a GET.  So, the  request
always fails. Is there a way to get around this?  or for that matter is
there a Camel component that solves it?

*In my case the mime type is strictly tied to application/*+xml*



--
View this message in context: 
http://camel.465427.n5.nabble.com/Http4-Set-Header-Content-Type-not-passing-through-to-the-HTTP-Request-tp5746414p5752955.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to