Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BF0617B7E for ; Mon, 20 Apr 2015 13:51:48 +0000 (UTC) Received: (qmail 55107 invoked by uid 500); 20 Apr 2015 13:51:48 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 55059 invoked by uid 500); 20 Apr 2015 13:51:48 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 55047 invoked by uid 99); 20 Apr 2015 13:51:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2015 13:51:47 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.191.145.13 which is an MX secondary for users@camel.apache.org) Received: from [54.191.145.13] (HELO mx1-us-west.apache.org) (54.191.145.13) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2015 13:51:41 +0000 Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id ADA5A2539D for ; Mon, 20 Apr 2015 13:51:21 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 78FE01B77033 for ; Mon, 20 Apr 2015 06:51:57 -0700 (PDT) Date: Mon, 20 Apr 2015 06:51:21 -0700 (MST) From: "Liliana.Neagul" To: users@camel.apache.org Message-ID: <1429537881259-5766066.post@n5.nabble.com> In-Reply-To: <1429260948948-5765912.post@n5.nabble.com> References: <1299818359472-3424535.post@n5.nabble.com> <1299858534400-3425276.post@n5.nabble.com> <1429260948948-5765912.post@n5.nabble.com> Subject: Re: Posting to Camel Servlet endpoint brings up file download dialog MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.