Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]):
> It works very well with HTTP and FTP anonymous. But when I want to
> download files from FTP with authentication, I have some problems :
> It's OK when I specify a file but it fails when I want to retrieve a
> directory.
I guess some of the problems you report have been already addressed in
the development (CVS) version of wget.
> It will be nice if someone can explain to me how I can solve this
> problem.
You would have to compile the lastest CVS version. Have a look at
http://sunsite.dk/wget/ to find out how to do it.
> 1) wget -o test.log -r ftp://oracle:[EMAIL PROTECTED]/param
>
> --12:02:55-- ftp://oracle:[EMAIL PROTECTED]:21/param
> => `recife.neuilly.ratp/param'
> ==> CWD not required.
> ==> PORT ... done. ==> RETR param ...
> No such file `param'.
>
> ==> wget should now that param is a directory (I can see it in the file
> .listing)
There is a small but iomportant difference between `ftp://host/file'
and `ftp://host/dir/'. But you're right, in case that there is no file
of the given name available, we shall probably try CWD to a directory
of the same name.
> 2) wget -o test.log -r ftp://oracle:[EMAIL PROTECTED]/param/
>
> --12:03:08-- ftp://oracle:[EMAIL PROTECTED]:21/param/
> => `recife.neuilly.ratp/param/index.html'
> ==> CWD not required.
> ==> PORT ... done. ==> RETR ...
> No such file `'.
>
> ==> index.html does not exist in this directory and I see all the files in
> .listing
wget 1.7-dev gets this correctly.
> 3) wget -o test.log -r ftp://oracle:[EMAIL PROTECTED]/param/*.sh
>
> No matches on pattern `*.sh'.
>
> ==> I don't understand why !
Because of `*' being interpreted by your shell prior to starting
wget. You would have to quote the URL as 'ftp:..../*.sh'.
-- jan
--------------------+------------------------------------------------------
Jan Prikryl | vr|vis center for virtual reality and visualisation
<[EMAIL PROTECTED]> | http://www.vrvis.at
--------------------+------------------------------------------------------