I use Camel-http 2.0M1 to send messages to an http endpoint. The URI is defined in the endpoint, but I would like to specify the last part of the path dynamically in the header.
So I tried to set the header as follows (before I send the message with ProducerTemplate.sendBodyAndHeader(...): Map <String,Object> header = new HashMap(); header.put(HttpConstants.HTTP_METHOD, "POST"); header.put(HttpConstants.HTTP_URI, "http://localhost:8080/myService"); header.put(HttpConstants.HTTP_PATH, "testPath"); But the path is ignored and the message is sent to http://localhost:8080/myService (or the URI defined in the endpoint if I delete the third line). Thanks for any hints on what I do wrong, M.S. -- View this message in context: http://www.nabble.com/Setting-a-path-in-message-header-with-Camel-http-2.0M1-tp22781504p22781504.html Sent from the Camel - Users mailing list archive at Nabble.com.