Re: FTP ASCII/BINARY problem

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 27 Feb 1999 18:18:07 +0100

Mogens Kjaer wrote:

> So why is it saved as ASCII in this case? I think all this changed
> when I upgraded to Squid 2.1 ...

It is most likely Netscape which does the CR/LF translation since the
content type is text/plain, and it knows that DOS/Windows uses CR+LF as
line terminator.

> If I use a Linux netscape client, the download is binary, if
> the client is win95 netscape, the download is ascii. The conversion
> (lf to crlf) must take place when squid sends to the client.

UNIX Netscape seems to behave nicely, and never do any kind of CR/LF
translation when downloading files.

To Squid there is no difference which OS the client are used. The
request is processed in the same way regardless.

> Does squid choose between ascii and binary from the OS of the
> client? If so, any way of turning this off??

Three ways:
1. Add a correct mime type for the file type
2. or change the default mimetype to application/binary
3. or use the download icon for downloading the file if the browser
insist on CR/LF translation.

---
Henrik Nordstrom
Spare time Squid hacker
Received on Sat Feb 27 1999 - 11:11:54 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:46 MST