Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48155 invoked from network); 24 Feb 2006 21:34:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Feb 2006 21:34:11 -0000 Received: (qmail 96768 invoked by uid 500); 24 Feb 2006 21:33:57 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 96725 invoked by uid 500); 24 Feb 2006 21:33:57 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 96714 invoked by uid 99); 24 Feb 2006 21:33:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 13:33:57 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.68.5.9] (HELO relay00.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 24 Feb 2006 13:33:56 -0800 Received: (qmail 57614 invoked from network); 24 Feb 2006 21:33:35 -0000 Received: from unknown (HELO ?192.168.1.102?) (unknown) by unknown with SMTP; 24 Feb 2006 21:33:35 -0000 X-pair-Authenticated: 71.251.206.138 Message-ID: <43FF7BB4.6030901@invest-faq.com> Date: Fri, 24 Feb 2006 16:33:40 -0500 From: Chris Lott User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@tomcat.apache.org Subject: Problem with getting ppt file from tomcat JSP server via https/SSL Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 Hi, Summary: Please tell me what headers Tomcat sets when it serves out a plain file, and how I can control those headers. Long version: I'm using Tomcat 5.0.28 for a small webapp. It sits behind Apache, which does SSL and forwards requests to Tomcat via mod_jk. Anyhow, in the documentation area for my webapp users I tossed a few HTML files and power-point files, and added links on JSP pages right to those files. Clicking on the links to the HTML works fine, the tomcat server pushes them across wonderfully. The problems arise when an IE user clicks on a link to a powerpoint file. (It works fine in Firefox.) I first had to extend web.xml for the appropriate mime-type. This is documented partly in Tomcat bugzilla bug # 27617 (and I'm trying to get that reopened). That change got me one step farther, but there are still problems. It appears that IE 6 is very sensitive to Cache-Control headers. Here are some links that get into the problem: http://support.microsoft.com/default.aspx?scid=kb;en-us;812935 http://forum.java.sun.com/thread.jspa?threadID=233446&start=0&tstart=0 http://www.alexking.org/blog/2004/11/03/workaround-for-iessl-problem The workarounds suggested by the sites above focus on removing or altering the Pragma and Cache-Control headers. I'd like to do that, but cannot find anything about doing that on a default basis. Sure, I can set/remove headers on a JSP response object, but in the case of a simple file, I'm not coding a JSP page nor manipulating any response object. Finally my questions: I believe that Tomcat sets headers when it shovels out a file. Is that right? If so, how can I control what headers are set? I suspect the workaround may be do put a little JSP page in place that adjusts the headers and somehow dumps out the content of the file, but ugh, I'm don't like the sound of all that complexity. Please reply (cc me directly if you don't mind), thanks in advance! chris... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org