Re: using http instead of ftp for txfr?
Greg Kurtzer <[email protected]>
| Newsgroups | gmane.linux.redhat.rpm.grab |
|---|---|
| Message-ID | <[email protected]> |
Perfect timing! I just got an E-mail back from Gisle Aas who is the maintainer of LWP (lowlevel WWW Protocol) perl libs, and he gave me some advice on using the getstore() functions, which I did not know before. It will do exactly what I need. The only problem is that the libWWW perl mods are not part of a "normal" Linux distribution. I will have to either bundle the functions into GRAB, create an RPM for libWWW, or just require the source to be installed. In any case I will start working on this shortly... Greg On Fri, Mar 22, 2002 at 10:17:53AM -0800, Ami Fischman wrote: > Greg Kurtzer <[email protected]> writes: > > > I have been thinking the same thing for quite some time now. Unfortunatly I > > have been unable to find a suitable perl library/module for doing such a task > > nicely. I have been looking into Net/HTTP.pm but while it seems to be good for > > viewing text HTML, using it to download binary files has given me problems. I > > will do some more checking and see if I can build the functionality in to > > GRAB. > > Hmm. Could using the lftp client help here? For instance, I can run: > lftp http://distro.ibiblio.org/pub/Linux/distributiredhat/7.2/ > followed by: > ls -al > > and get back: > drwxr-xr-x - 2001-11-27 17:01 .. > drwxr-xr-x - 2001-10-03 18:37 de > drwxr-xr-x - 2001-10-03 18:37 emea > drwxr-xr-x - 2001-10-03 18:37 en > drwxr-xr-x - 2001-10-03 18:37 es > drwxr-xr-x - 2001-10-03 18:37 fr > drwxr-xr-x - 2001-10-03 18:37 it > drwxr-xr-x - 2001-10-03 19:01 ja > > So, lftp is already doing the parsing of the apache listing and presenting > the data as if it were an ftp server. > > -- > Ami Fischman > [email protected] -- Greg Kurtzer [email protected] http://www.runlevelzero.net LINUX,... The choice of a GNU generation! :wq