>> Yet web browsers can not seem to display hello.tar.gz.md5 , while
>> they display hello.md5 and hello.txt properly. According to the
>> mime.types, aren't ALL of these files text/plain? And if so, how can
>> they be interpreted differently?
>
> Apache will look at several of the suffixes and this might be causing
> you problems. The file may be being treated as already compressed.
> You probably want to start capturing complete logs of the requests
> so that you can see what is going on.
Nuts, I didn't know it looked at multiple suffixes. Maybe I'll just name
my files differently then
The following shows the full headers sent and received to the server,
first from lynx and then from my keyboard. Note that after getting the
file, lynx said: "Alert!: Error uncompressing temporary file!"
I just don't see why "Content-Encoding: x-gzip" should come in reply to
the second request, because the client did not indicate support for gzip.
======== Lynx request ========
GET /temp/hello.tar.gz.md5 HTTP/1.0
Host:
www.pc-tools.net
Accept: text/html, text/plain, text/sgml, */*;q=0.01
Accept-Encoding: gzip, compress
Accept-Language: en
User-Agent: Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7b
======== Reply to Lynx ========
HTTP/1.1 200 OK
Date: Mon, 10 Nov 2003 16:05:10 GMT
Server: Apache
Last-Modified: Mon, 10 Nov 2003 02:23:02 GMT
ETag: "1f84a-2c-79262d80"
Accept-Ranges: bytes
Content-Length: 44
Connection: close
Content-Type: text/plain; charset=ISO-8859-1
Content-Encoding: gzip
This is hello.tar.gz.md5, a plain text file
======== end ========
Now doing a manual request
======== Simple request ========
GET /temp/hello.tar.gz.md5 HTTP/1.1
Connection: close
Host:
www.pc-tools.net
======== Reply to simple request ========
HTTP/1.1 200 OK
Date: Mon, 10 Nov 2003 16:13:15 GMT
Server: Apache
Last-Modified: Mon, 10 Nov 2003 02:23:02 GMT
ETag: "1f84a-2c-79262d80"
Accept-Ranges: bytes
Content-Length: 44
Connection: close
Content-Type: text/plain; charset=ISO-8859-1
Content-Encoding: x-gzip
This is hello.tar.gz.md5, a plain text file
======== end ========
--
Jem Berkes
http://www.sysdesign.ca/