camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filippo Balicchia <filippo.balicc...@gmail.com>
Subject Re: Add some HTTP header to HttpProduce
Date Wed, 28 Jul 2010 14:11:02 GMT
ok thanks,

but is possibile to put some costum headers ?

for example

"transaction-set" ?

cheers



2010/7/28 Willem Jiang <willem.jiang@gmail.com>:
> Richard Slide wrote:
>>
>> Hello all,
>> I need to add the following header to my http request:
>>
>> "myaddress"
>> "from"
>> "to"
>> "transaction-set"
>>
> You can put these header into the message header and HttpProducer will take
> care of them.
>>
>> and change the http protocol version from http 1.1 to http .1.0
>>
> I don't think we can change the http protocol version as camel doesn't
> provide a way to set it.
> Please feel free to log a JIRA for it.
>
>>
>> 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
>>
>
> Willem
> ----------------------------------
> Apache Camel, Apache CXF committer
> Open Source Integration http://www.fusesource.com
> Blog http://willemjiang.blogspot.com
> Tiwtter http://twitter.com/willemjiang
>

Mime
View raw message