Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 65703 invoked from network); 2 Mar 2006 18:56:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Mar 2006 18:56:49 -0000 Received: (qmail 12574 invoked by uid 500); 2 Mar 2006 18:57:29 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 12557 invoked by uid 500); 2 Mar 2006 18:57:29 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 12545 invoked by uid 99); 2 Mar 2006 18:57:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2006 10:57:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.77.29.165] (HELO secure.exclamationlabs.net) (66.77.29.165) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2006 10:57:28 -0800 Received: from [192.168.2.160] (c-69-141-1-101.hsd1.pa.comcast.net [69.141.1.101]) (authenticated (0 bits)) by secure.exclamationlabs.net (8.11.6/8.11.6) with ESMTP id k22Iv8q20413; Thu, 2 Mar 2006 12:57:08 -0600 Message-ID: <44074000.7090001@modperlcookbook.org> Date: Thu, 02 Mar 2006 13:57:04 -0500 From: Geoffrey Young User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040927 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "John N. Brahy" CC: modperl@perl.apache.org Subject: Re: Content Disposition header and file contents sequence... References: In-Reply-To: X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > $r->headers_out->set('Content-Disposition' => > "attachment;filename=$downloadFilename"); try $r->headers_out->set('Content-Disposition' => ' inline; filename=$downloadFilename'); > $r->send_fd($fileFH); > $r->send_http_header(); those definitely need to be reversed - you need to send the headers before you send any output. --Geoff