Me and jarod find a solution that works and I will just share an example:

        from("jetty:http://localhost:4566/download";)
                .setBody(simple("resource:fileExample.xml"))
                .setHeader("Content-type",constant("text/xml"))
                .setHeader("Pragma",constant( "public"))
                .setHeader("Content-Disposition",constant(
"attachment;filename=test.xml"));




--
View this message in context: 
http://camel.465427.n5.nabble.com/Posting-to-Camel-Servlet-endpoint-brings-up-file-download-dialog-tp3424535p5766066.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to