I'm using proxy Squid Stable 2.5 in my company
and I want to download all binary files from a "public ftp server"
into my internal server.

Proxy squid: RedHat 7.3

I created a script  and I run it into my internal server.
In this script I set "ftp_proxy variable" with its address ip and its port,
and I exported this variable.

WGET ftp_proxy... -m ...  ftp://...directory/

Squid gives to wget an INDEX.HTML file,
which contains a files list of the directory
specified in ftp://...directory/  but in HTML mode,
so it's impossible for wget to translate file names correctly.
Infact wget result fails.

I thought filtering index.html into a clean file (e.g. called "clean") and
using wget to download binary files once to once,
which are indicated into this "clean" file.

Problem reappears every time that I have a SUB-directory,
infact index.html file is recreated .

Do you know the way to solve this problem,
to download whole directory structure (files included) into my ftp server
using squid ?

thanks

Riccardo









Reply via email to