Re: Curious ftp problem with squid 1.1.3

From: Nigel Metheringham <>
Date: Wed, 15 Jan 1997 10:40:32 +0000

} Duane Wessels wrote:
} > So it would be interesting to try changing DEFAULT_MIME_TYPE in
} > ftpget.c and see if that fixes this problem. Meanwhile, everyone can
} > argue about which content type should be the default.
} I'd vote for application/octet-stream. Ftpget really does not know
} anything about the file in question apart from the fact that it is an
} octet stream (or will be presented as one by the remote FTP server).

How about a slightly different variation....

  - Allow a trailing part to the ftp URL of the form

  - If specified then ftpget would send back a mime-type/subtype
    [and for text/* change the transfer mode to ascii]

  - If no type is specified and no type can be deduced, return an

  - When generating a directory listing, if a file is seen that cannot
    by typed generate 2 <A...> bits for it - one with stuff defaulted
    to binary, the other to force fetching as text.

I am not convinced its the right thing to do, but it does allow


[   - Unix Applications Engineer ]
[ *Views expressed here are personal and not supported by PLAnet* ]
[ PLAnet Online : The White House          Tel : +44 113 251 6012 ]
[ Melbourne Street, Leeds LS2 7PS UK.      Fax : +44 113 2345656  ]
[Q: You know when you run sendmail....  A: No, you DELETE sendmail]
Received on Wed Jan 15 1997 - 03:04:52 MST

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