Re: Squid and ftp on dialup

From: Henrik Nordstrom <[email protected]>
Date: Fri, 21 Jan 2000 23:27:43 +0100

Luca Micheletti wrote:

> If i make ftp with browser there are no problem(but i can't make put etc..)

You can put files if you use Netscape. It does not seem to be
implemented in Microsoft IE.

> But i can't make ftp with a client ftp with non anonymous authentication.
>
> Is this possible????

Squid only supports HTTP clients, not ftp clients.

The syntax for FTP urls is

ftp://[user[:password]@]server[/path/to/file][;type=d|;type=i|;type=a]

Non-anynymous FTP is established by supplying at least the user@ in
front of the server name. If using IE then the password must also be
specified (IE does not seem to understand how to handle HTTP
authentication on FTP URL's).

The type= argument specifies the transfer mode to perform. d ==
directory, i == image (binary) and a == ascii. If transfer mode isn't
specified then Squid will use heuristics from mime.conf.

So for example given the extreme example of

ftp://henrik:topsecret@ftp.example.com/path/to/file;type=i

Is roughtly equivalent to

  FTP to the server ftp.example.com
    Username henrik
    Password topsecret
    cd path
    cd to
    binary
    get file

--
Henrik Nordstrom
Squid hacker
Received on Fri Jan 21 2000 - 19:18:03 MST

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