Re: can't download ftp .gz files

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 17 Oct 1998 02:35:46 +0200

Francesc Guasch wrote:
>
> Hi, I got squid-2.0.RELEASE , and my client is
> Netscape-4.06 for win95
> When I try to download an ftp file that's a .tar.gz
> the file is uncompressed and showed in the screen.
>
> If I try to do a save as the command tar xzvf doesn't
> work, and it tells me it's not gzipped.

Maybe it isn't gzipped when Netscape 4 saved the object after viewing...

What is your output from

squid/bin/client -m HEAD ftp://ftp.server/path/file.tar.gz

It should look like (with lots of uninteresing headers removed)
HTTP/1.0 200 OK
Content-Type: application/x-tar
Content-Encoding: gzip

If you get something else as Content-Type or Encoding then you are most
likely not using the current etc/mime.conf file. Suggested fix: cp
etc/mime.conf.default etc/mime.conf and restart Squid.

If you get the type and encoding above, and netscape insists on showing
the object instead of asking you to save it to disk then your Netscape
is misconfigured. Netscape should either ask you to save the file or
view the file by using winzip or another program that understands about
tar files.

If you use shift-click (or "Save link as") when downloading files that
you want to save then the file should be saved without any
modifications.

---
Henrik Nordström
Spare time Squid hacker
Received on Fri Oct 16 1998 - 18:39:02 MDT

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