On Sun, Jan 21, 2001 at 08:19:06PM -0200, Ricardo Bittencourt wrote:
> 
>       Hi people,
> 
>       I made a sample .msx file, including all the ideas
> presented until now. Please download it at:
> 
>       http://www.lsi.usp.br/~ricardo/penguin.msx
> 
>       I downloaded the file using Netscape Navigator 4.73
> and Internet Explorer 5.00, in the Windows 95 environment.
> Netscape tried to open the file as an ASCII text, and Explorer
> recognized an unknown extension and asked me if I wanted to 
> save it to file (cripes, at least once Explorer made the service
> better than Netscape). It seems we will need Maarten suggestion
> about using .msx.zip extensions.

The problem is the mime-type:

sagar:~ $ telnet www.lsi.usp.br 80
Trying 143.107.161.160...
Connected to www.lsi.usp.br.
Escape character is '^]'.
HEAD /%7ericardo/penguin.msx HTTP/1.1 
Host: www.lsi.usp.br
Connection: close

HTTP/1.0 200 OK
Date: Mon, 22 Jan 2001 01:43:30 GMT
Server: Apache/1.3.12 Ben-SSL/1.39 (Unix) PHP/3.0.16
Last-Modified: Sun, 21 Jan 2001 21:12:17 GMT
ETag: "1976b6-16458-3a6b50b1"
Accept-Ranges: bytes
Content-Length: 91224
Content-Type: text/plain
X-Cache: MISS from gateway.lsi.usp.br
Connection: close

Connection closed by foreign host.

As you can see the content-type is text/plain. This needs to be set to
"application/octet-stream", the generic mime-type for downloads. If the
mime-type is set to text/plain older browsers (Netscape 2 for example) will
do lf => crlf conversions so that'll fuck things up (badly).

Since the site seems to be running on Apache (good!) you can fix this by
putting a file called .htaccess in your webroot. In it you should have:

AddType application/octet-stream .msx .pma .rom .dsk .bas .cas .elg

Like I have for www.msxnet.org.

Netscape made the better choice from the content-type. IE sucks and only
looks at extension, which is wrong.


Sean


--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html

Reply via email to