camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Add some HTTP header to HttpProduce
Date Wed, 28 Jul 2010 14:00:52 GMT
You can just use the setHeader to see those headers

.setHeader("myaddress", constant("Some address"))
.setHeader("from", constant("Someone))


On Wed, Jul 28, 2010 at 3:49 PM, Richard Slide <richard.slide@gmail.com> wrote:
> Hello all,
> I need to add the following header to my http request:
>
> "myaddress"
> "from"
> "to"
> "transaction-set"
>
>
> and change the http protocol version from http 1.1 to http .1.0
>
>
> My route builder looks like this
>
>  from(senderUri).setHeader(Exchange.HTTP_METHOD,
> constant(org.apache.camel.component.http.HttpMethods.POST)).to(
>            receiverUri);
>
>
>
> where senderUri is file end point receiver is http end point
>
>
> thanks for help
>
>
> --Richard
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message