Thanks Claus for the reply. I will set the tracer and see. Yes the http path
returns valid data.



Claus Ibsen-2 wrote:
> 
> Hi
> 
> Use the tracer to see what is going on
> http://camel.apache.org/tracer
> 
> And does that remote HTTP server return valid data.
> 
> 
> On Thu, Jun 3, 2010 at 11:14 AM, Nav1771 <navde...@yahoo.com> wrote:
>>
>> Hi,
>>  I am a beginner with Camel. I am trying to download a file for which I
>> have
>> http path and trying to store the file in the local file system.  I am
>> using
>> Camel 2.3.0. Please see the code below.  I am expecting that on running
>> this
>> route the file should be downloaded and moved to data2/s124 folder on the
>> local filesystem. But this is not happening. Please let me know if I am
>> doing anything wrong or if there is a better way of achieving this. Btw I
>> am
>> using camel-jetty component for the http action.
>>
>>
>> <route>
>>            <from uri="direct:start"/>
>>                <setHeader headerName="CamelHttpMethod">
>>                    <constant>POST</constant>
>>                </setHeader>
>>            <to uri="http://fileServer/11/trial1.txt"/>
>>            <to uri="file:///E:/data2/s124/?autoCreate=true"/>
>>        </route>
>> --
>> View this message in context:
>> http://old.nabble.com/Using-CamelHttpComponent-to-download-file-tp28765063p28765063.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> 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
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Using-CamelHttpComponent-to-download-file-tp28765063p28770164.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to