camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Shea" <>
Subject from http://... to file://...
Date Mon, 09 Jun 2008 18:39:53 GMT
Hi all, I am trying to read from an http endpoint and save the content to a file but the to("file://...")
seems to be trying to read the file and not write to it!

I've looked at all the unit tests and search for an answer but I still can't figure it out.

from("jetty:http://localhost:8888/hello").setHeader(FileComponent.HEADER_FILE_NAME, "message.txt").to("file:target/hello");

This should be simple no?


View raw message