Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 19719 invoked from network); 21 Nov 2008 19:14:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2008 19:14:14 -0000 Received: (qmail 65563 invoked by uid 500); 21 Nov 2008 19:14:13 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 65550 invoked by uid 500); 21 Nov 2008 19:14:13 -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 65539 invoked by uid 99); 21 Nov 2008 19:14:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2008 11:14:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hoover.david@gmail.com designates 74.125.78.144 as permitted sender) Received: from [74.125.78.144] (HELO ey-out-1920.google.com) (74.125.78.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2008 19:12:49 +0000 Received: by ey-out-1920.google.com with SMTP id 4so442616eyg.48 for ; Fri, 21 Nov 2008 11:13:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=vWoF1TgkwFZ0m1lZ5AypdjI50XaOlsxUORW3w9yTd+s=; b=n1OndVqQ6daB9xYJnL4kDN3CeurjOqHRPmlzoLcVT0EiJWSafB31G7MisSzuKDv1Rt E8jMlNoNgFMUlnTgJaSX2DUmloGV2f8uvqt2dTj7uQQKUa0JM68EWDXDjfBZisC6xNGG YCUruCNjnVl2NeJ+aCj++IxqfBu+r5c/Srzhk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=QWyeLOt66bbD4UZyJqiT58NCELgZtA+rTvIp9EVCqAeAS/qXmk4lzgZ10CrN679Yeb vmiV3Wwfxv6sQUezrsPESEm90zK30xXDaizTdxX5e6XJICaxNu0zpjZILpN2ss14ZNOd bDn21riYeZ555QPeVRYGHadveRa+zZL4Eo/g4= Received: by 10.103.229.19 with SMTP id g19mr178585mur.1.1227294813078; Fri, 21 Nov 2008 11:13:33 -0800 (PST) Received: from ?192.168.1.2? (adsl-62-167-76-153.adslplus.ch [62.167.76.153]) by mx.google.com with ESMTPS id t10sm385922muh.51.2008.11.21.11.13.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 21 Nov 2008 11:13:32 -0800 (PST) From: David Hoover Reply-To: dho@boiteauxlettres.sent.at To: users@httpd.apache.org In-Reply-To: <49243EE4.8010507@ice-sa.com> References: <35171d20811190818i65b8339au8d381ee84bde468d@mail.gmail.com> <49243EE4.8010507@ice-sa.com> Content-Type: text/plain; charset=ISO-8859-15 Date: Fri, 21 Nov 2008 20:15:36 +0100 Message-Id: <1227294936.3129.5.camel@papeau> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 (2.22.1-2.fc9) Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Newbie question about text line endings w/Linux server and Windows Explorer client I checked out the headers, and then changed the server configuration so that everything that needs correct screen formatting gets sent as 'plain/text' (instead of 'plain/x-c', for example, and it works. Seems like a hack, but it is sufficient for what I need to do. Thanks, DH. On Wed, 2008-11-19 at 17:29 +0100, Andr� Warnier wrote: > Hi. > > 1) recommended : install Firefox, and the LiveHttpHeaders plugin for > Firefox. This allows you to see excactly which HTTP headers the server > is sending to the browser along with your file. > This will tell you what the browser *should* do to display the file. > (Well, not immediately and not as simply, but at least it will help). > > 2) You are probably being hit by the usual IE symptom of "trying to be > smarter than you and than the HTTP standard". > Normally, a browser is supposed to "believe" what the HTTP server tells > it, regarding the type of the document returned by the server. > In particular, if the server says that this is a "text/plain" type of > document, then the browser should believe this and display it as "plain > text". > However, in their infinite wisdom, MS decided that they could not really > trust these web servers, and MS IE makes its own personal evaluation of > what this document could possibly be. If it then decides that this is > not a "text/plain" but something else, it will try to display it as that > something else. > One of the criteria IE uses to determine "what this file could really > be, despite what the server tells me it is", is the file extension. > To make it even more fun, it is not even totally consistent between IE > versions. > > That's probably the cause of the differences you observe. > Complain to MS, they must be used to it by now. > There are a multitude of articles on the web, and even in the MS > Knowledge Base, which deal with this issue. > Searching Google for "IE +mime +type" will give you a good overview. > Enjoy. > > > > > Hoover, David wrote: > > Hi, > > > > I have some files stored in a 'downloads' area of an Apache 2.2.10 > > server running on Linux Fedora Core 9. I access the files via Windows > > Explorer 6. > > > > If I view (click on Explorer link) a file named 'file.c' with the UNIX > > linefeed convention, all of the text appears on a single line in my > > Explorer window. > > > > If I view the same file, but this time named 'file', with no > > extension, the text appears correct in the window. > > > > If I do a 'save as...' operation, both files are saved the same. > > > > On some internet web servers, this problem doesn't occur with my browser. > > > > Why is the text shown on one line? What do I need to configure differently? > > > > Sorry this must be a dumb question...but I haven't been able to find > > an answer in the mailing list or on the net. > > > > Thanks for the help, > > > > DH. > > > > --------------------------------- > > The config file is standard, with the following modification: > > > > > > Options Indexes > > AllowOverride None > > Order allow,deny > > Allow from all > > > > > > Apache was compiled with the following options: > > ./configure --enable-dav --enable-ssl --enable-dumpio > > > > --------------------------------------------------------------------- > > 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 > > > > > --------------------------------------------------------------------- > 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 > --------------------------------------------------------------------- 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