[thelist] text/plain vs IE & Opera

Marek Kilimajer kilimajer at webglobe.sk
Wed Oct 1 11:46:46 CDT 2003


Hello coders,

I want to keep plain text formating of the output, so I send out 
Content-Type: text/plain header, this works fine in mozilla, but IE and 
Opera want to download the file. Still if I point the two browsers to a 
.txt file, they display the file as expected.

Am I missing something?

Thanks

Headers:

 From my php file:

HTTP/1.1 200 OK
Date: Wed, 01 Oct 2003 16:41:31 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.2
X-Powered-By: PHP/4.3.2
Set-Cookie: undisclosed
Cache-Control: private, max-age=10800, pre-check=10800
Last-Modified: Wed, 1 Oct 2003 16:39:41 GMT
X-Pad: avoid browser bug
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain

 From plain txt file:

HTTP/1.1 200 OK
Date: Wed, 01 Oct 2003 16:44:59 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.2
Last-Modified: Sat, 15 Mar 2003 14:38:38 GMT
ETag: "14456-337-3e733aee"
Accept-Ranges: bytes
Content-Length: 823
Connection: close
Content-Type: text/plain
X-Pad: avoid browser bug







More information about the thelist mailing list