[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MiNT-distribution for newbies



Hi!

On Mon, Oct 11, 1999 at 09:23:54AM -0400, Fred Horvat wrote:
> I used Netscape Communicator 4.7.  I can download it fine but not unpack it.

A typical Netscape Communicator for Windows problem in connection with
a web server that doesn't know ".lzh":

-- snip --
$ telnet atari.nvg.org 80
HEAD /newbiemint/NewbieMiNT-0.01.lzh HTTP/1.0

HTTP/1.0 200 OK
Date: Tue, 12 Oct 1999 10:13:46 GMT
Server: Apache/1.2.5
Last-Modified: Sun, 10 Oct 1999 18:30:58 GMT
ETag: "7d4-115776-3800db62"
Accept-Ranges: bytes
Content-Type: text/plain
Content-Length: 1136502
Age: 0
X-Cache: MISS from www-cache.arago.de
Proxy-Connection: close
-- snap --

As you can see, the server reports "text/plain" as the content type of
the file, but it should actually be "application/octet-stream". Netscape
for Windows now converts UNIX newlines to DOS crlfs when downloading
"text/plain" documents, which is a feature to ensure you can view/edit
such files with the typical dumb Windows editor (e.g. Notepad).

To get around this, either use a different browser like MSIE, which
doesn't do this conversion, or - on the other end - configure (or let it
someone do it) the webserver so that it recognizes *.lzh as
"application/octet-stream". Apache as of 1.3.0 ships with a correct
mime.types file, and the admin of atari.nvg.org should really consider
updating to 1.3.9, as 1.2.5 is rather old.

Another possibility - if the server isn't configure too restrictively -
is to put a .htaccess file into the /newbiemint directory, with the
following contents:

AddEncoding application/octet-stream lzh

(If the server answers with an "Internal server error" after doing so,
you aren't allowed to use that directive in .htaccess, or even .htaccess
at all.)


Ciao

Thomas


-- 
Thomas Binder (Gryf @ IRCNet)  gryf@hrzpub.tu-darmstadt.de
PGP-key available on request!  binder@rbg.informatik.tu-darmstadt.de
Vote against SPAM:             http://www.politik-digital.de/spam/

Attachment: pgpOJUtqlPgDL.pgp
Description: PGP signature