Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 6016 invoked from network); 3 Nov 2009 20:24:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Nov 2009 20:24:16 -0000 Received: (qmail 71341 invoked by uid 500); 3 Nov 2009 20:24:13 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 71290 invoked by uid 500); 3 Nov 2009 20:24:12 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 71281 invoked by uid 99); 3 Nov 2009 20:24:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2009 20:24:12 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2009 20:24:10 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id 7D4EB22607B for ; Tue, 3 Nov 2009 21:23:48 +0100 (CET) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3QaGTXwZuZP6 for ; Tue, 3 Nov 2009 21:23:48 +0100 (CET) Received: from [192.168.245.129] (p549EB07A.dip0.t-ipconnect.de [84.158.176.122]) by tor.combios.es (Postfix) with ESMTPA id 18209226077 for ; Tue, 3 Nov 2009 21:23:47 +0100 (CET) Message-ID: <4AF09144.6080504@ice-sa.com> Date: Tue, 03 Nov 2009 21:23:32 +0100 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: users@httpd.apache.org User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: users@httpd.apache.org References: <6a5aad1a0911031120n44e0f1a7r66daea6157024f91@mail.gmail.com> <20091103202610.63f2bdc7.rambo@id.uw.edu.pl> <4df3a1330911031132m6aa8c896pa01223811b537a49@mail.gmail.com> <6a5aad1a0911031206xe2d72f2k777aa143228f7161@mail.gmail.com> In-Reply-To: <6a5aad1a0911031206xe2d72f2k777aa143228f7161@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [users@httpd] pdf report generation - content type text/html b k wrote: > Thanks!! Actually, it's a java based app on the WebSphere app server that > sends the response to Apache web server which in turn sends the response to > the browser. I tested the reports directly on the App server which are > working fine. I suspect something is wrong in the apache config. I also > checked mime.types file which includes pdf entry. Apache will only generate itself the "Content-Type" and "Content-Disposition" response headers, if the file being served is a file that Apache itself picks up from the filesystem. That is also when it uses the mime.types file (to try and guess the type). When it is an application which generates this data (or file), then it is the responsibility of the application to add these 2 headers to the response (at least the Content-Type). When Apache sees a response about to go out, without a Content-Type header, it will add one of it's own, but that is a default set in the configuration, usually set to Content-Type: text/html (because that is the most likely on a webserver) So, whatever your application is, it is probably not producing this or these HTTP headers, which is why Apache adds its own default 'text/html' header, and that is the reason for the problem. To my knowledge, there is nothing in Apache that will remove a Content-Type header set by an application and replace it by another one, unless you have specifically configured it to do that. There are additional miseries in this due to the inconsistency of IE versions in interpreting the content coming from a webserver, but I believe that would be a second step, and you need to resolve the one above first. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org