I am trying to make a POST request to a restful Webservice via apache camel http component. the url is something like this : http://customdomain.name/service?apikey=somethingalphanumeric&consumerkey=somealphanumeric
The problem is that the & present in url is converted to & and this is passed as it is to the webservice, which then regards &"amp;" as some input, gives me bad request error. now how do i avoid this conversion of & to &. Please note its a Post Request. Also i need to POST a JSON to this webservice. This i am doing by using a Processor and then setting the body with the JSON string like : exchange.getIn().setBody("My json string"); I think the above is wrong because i have tested it couple of times and at server end i dont get any body in request. Please tell me whats the appropriate way. -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-HTTP-POST-character-tp5716155.html Sent from the Camel - Users mailing list archive at Nabble.com.