Re: communicator 4.6 - ftp bug
Hartmut Figge wrote:
> Rick Macdonald wrote:
> > On Thu, 17 Jun 1999, Peter S Galbraith wrote:
> > > > > my communicator 4.6 insists of unpacking certain types of files before
> > > > > saving to hd. this behaviour is not acceptable, therefore i have to use
> > > > > another version, which will download a file _unchanged_ if demanded.
> > I have this problem with gz file when it's not tar.gz. Just now I did some
> > tests and added a mime type to netscape
> > preferences/navigator/applications:
> > Description: Gzip archive file
> > MIMIEType: application/x-gzip-compressed
> > Suffixes: gz
> > Handled By: Unknown:PromptUser
> > Now it downloads the sane diff file as 17KB compressed, but I have to add
> > the .gz suffix to the filename in the netscape dialog or rename after.
> > Netscape seems to insist on stripping the extension.
> > This is closer. Can anyone improve this?
> but first: nice, no that´s not sufficient: _very_ nice.
> in Netscape.ad comment out the following lines to
> *encodingFilters: \
> x-compress : : .Z : uncompress -c \n\
> compress : : .Z : uncompress -c \n
> ! x-gzip : : .z,.gz : gzip -cdq \n\
> ! gzip : : .z,.gz : gzip -cdq \n
> with that netscape finally behaves as it should. don´t forget, netscape
> needs the link /usr/X11R6/lib/X11/app-defaults/Netscape pointing to
> Netscape.ad. perhaps it is sufficient to copy these lines to
> as you can see above, your line ´Suffixes´ should be completed to
> Suffixes: z,gz
> there should also be another entry to handle the .Z-files properly. but
> what about the appropriate MIMIEtTpe? i haven´t found the possible
> values. could you please point me to a location, where this types are
This is damned frustrating.
A) I made up the MIMEtypes when I added those
Preferences->Navigator->Applications entries, Hartmut. The
important things are the suffix and which option you selected in
the 'handled by' section.
B) I'm glad you got it working for you Hartmut, but guess what, I
don't need to comment out those lines in Netscape.ad, nor do I
need the link to app-defaults/Netscape. In fact, I don't even
*have* a .../app-defaults/netscape file! Nor does NS strip the
suffix on me, as reported by someone else.
C) For everyone elses benifit: I'm using NS Communicator 4.6. My
first version was 4.05. I had these reported problems then. In
the process of trying to fix things, I added the
Preferences->Navigator->Applications entries for files with *.gz
and many other suffixes. At one point I was manually editing
.mime.types because the entries I made were becoming corrupted for
some reason. I never did get things working as I wanted, but now
I can't remember the specifics, besides the corrupted .mime.types
entries. When I upgraded to 4.5 the problems disappeared, and I
never gave it any more thought. The upgrades preserved these
entries I had made so they are still with me. One of them is
desc="GZipped Files" \
This works for me, and the suffix is not stripped by NS. I just
wish I could remember what else I did. Sorry.