On Mon, Mar 30, 2009 at 1:51 PM, m.s. <da_...@arcor.de> wrote: > > 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, Hi
Sorry for not getting back to you sooner. Could you take a look in the camel-http component? I suspect it does not concat the HTTP_PATH and HTTP_URI headers. Could be a glitch in there. > > 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. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus