You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2013/10/25 10:16:21 UTC

Re: Issue with camel-http4 HttpProducer

Hi

Yeah we could improve on that with an option so you can force not
sending any body. Feel free to log a JIRA



On Mon, Sep 30, 2013 at 2:02 PM, sbo13 <sb...@gmx.de> wrote:
> Hi,
>
> I'm having a problem with the HttpProducer of camel-http4 (version 2.12)
>
> In the createMethod() function, line 365, the producer always tries to build
> a request entity.
> Unfortunately we issue a lot of GET requests that don't support bodies, but
> in order to build the request-url we have a body in the exchange.
>
> BUT since the producer always tries to marshal the exchange body I get a
> exception saying no converter can be found to transform it.
> It looks a bit odd to me that although I say 'No, I don't want to send a
> body!' camel still tries to build one.
>
> Regards
> Sebastian
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Issue-with-camel-http4-HttpProducer-tp5740548.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen