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 <[email protected]> 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