httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff White" <jlw...@earthlink.net>
Subject Re: [users@httpd] Sending PHP-generated file Vs. plain text
Date Sun, 16 May 2004 19:08:27 GMT

From: "Joshua Slive"

> > If it's not a convenient side-effect,
> > I don't really care, because, again,
> > no-one will probably only Accept text/plain anyways.)

>
> I don't know of any browser that understands
> text/plain and not text/html,
> so this is probably a silly idea.
>

> But then you are going to run into the
> problem that most browsers don't
> express a preference for text/html over
> text/plain anyway,

Windows XP SP2 Internet Explorer changes.

<quote>

Web developers must change
their Web servers to host files,
using consistent headers
and file name extensions.

</quote>

Notice the _must_

Notice the _consistent_

If your web server sends back a file
named JustHtml.html
but your web server's header for
content-type is sent as text/plain,
then the newer Windows XP IE SP2
(the most used web response reader)
will display the file as text mode
(the source code version).

Your web server must send filename.ext
(JustHtml.html) and content-type action
(text/html) as both being equal from now
on.

<quote>

If an incorrectly-configured Web
server hosts HTML files but sends
text/plain as the Content-Type in the
HTTP header, Internet Explorer will
show the file as plain text, rather than
rendering the HTML.

</quote>

Once again

<quote>

Web developers must change
their Web servers to host files,
using consistent headers
and file name extensions.

</quote>

For more information

Changes to Functionality in Microsoft
Windows XP Service Pack 2
Part 5: Enhanced Browsing Security
http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/sp2brows.mspx#XSLTsection131121120120

Jeff



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message