You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tapdur <ta...@gmail.com> on 2010/03/19 06:18:29 UTC
camel:http Get /PATH
hi
i have a big issue with the http component
i want in the header HTTP_URI only the path without prefix by the host.
by defaut it won't be ok to(http://@ip/path -> HTTP_URI = GET
http://@IP/path
i try this
from(direct:notif)
.setHeader(Exchange.HTTP_URI,"/path")
.to(http://@ip);
it fails , host null
how manage this ? any idea ?
Thx
Bruno
--
View this message in context: http://old.nabble.com/camel%3Ahttp-Get--PATH-tp27950896p27950896.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel:http Get /PATH
Posted by Willem Jiang <wi...@gmail.com>.
Hi
I think you should use Exchange.HTTP_PATH to specify the PATH.
Willem
Tapdur wrote:
> hi
>
> i have a big issue with the http component
>
> i want in the header HTTP_URI only the path without prefix by the host.
>
> by defaut it won't be ok to(http://@ip/path -> HTTP_URI = GET
> http://@IP/path
>
> i try this
>
> from(direct:notif)
> .setHeader(Exchange.HTTP_URI,"/path")
> .to(http://@ip);
>
> it fails , host null
>
> how manage this ? any idea ?
>
> Thx
> Bruno