Re: Using CamelHttpComponent to download file

2010-06-08 Thread Nav1771
;>>> 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 >>>>

Re: Using CamelHttpComponent to download file

2010-06-07 Thread Claus Ibsen
w.  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 t

Re: Using CamelHttpComponent to download file

2010-06-07 Thread Nav1771
;> 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. >>>> >>>> >>>> >>>> >>>> >>>> POST >>>> >>>> http://fileServer/11/trial1.txt"/> >>>> >>>> >>> >>> >> > > > -- View this message in context: http://old.nabble.com/Using-CamelHttpComponent-to-download-file-tp28765063p28807168.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using CamelHttpComponent to download file

2010-06-04 Thread Willem Jiang
Hi, How did you send the request message to "direct:start"? I just wrote a simple test and ran it without any issue. Here is the route that I use, from("direct:start").setHeader(Exchange.HTTP_METHOD, constant("GET")) .to("http://jnn.javaeye.com/blog/458192";).setHeader(Exchange.FILE_NAME, con

Re: Using CamelHttpComponent to download file

2010-06-03 Thread Nav1771
nt for the http action. >> >> >> >> >> >> POST >> >> http://fileServer/11/trial1.txt"/> >> >> > > > -- View this message in context: http://old.nabble.com/Using-CamelHttpComponent-to-download-file-tp28765063p28770292.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using CamelHttpComponent to download file

2010-06-03 Thread Nav1771
s a better way of achieving this. Btw I >> am >> using camel-jetty component for the http action. >> >> >> >> >> >>POST >> >> http://fileServer/11/trial1.txt"/> >> &g

Re: Using CamelHttpComponent to download file

2010-06-03 Thread Willem Jiang
Hi, Maybe you should try to use GET method instead of the POST method to get the file. Willem Nav1771 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 t

Re: Using CamelHttpComponent to download file

2010-06-03 Thread Claus Ibsen
>             >         > -- > 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 Aut

Re: Using CamelHttpComponent to download file

2010-06-03 Thread Nav1771
gt; -- View this message in context: http://old.nabble.com/Using-CamelHttpComponent-to-download-file-tp28765063p28766873.html Sent from the Camel - Users mailing list archive at Nabble.com.

Using CamelHttpComponent to download file

2010-06-03 Thread Nav1771
http://fileServer/11/trial1.txt"/> -- 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.