Hi How LFTP can make use of a programmatically-generated directory contents? My customer uses a PHP program that mimics the output of the directory browsing feature and so generates the following HTML when the PHP program is invoked.
QUOTE <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <H1>www.anonhygiene.co.uk - /logList.php</H1><hr> <pre> <A HREF="/">[To Parent Directory]</A><br><br> 16 September 2008 02:07 51 <a href="http://anonlogs.netco.com/anonhygiene.log.200809160130.gz">anonhyg iene.log.200809160130.gz</a><br/> 17 September 2008 02:07 51 <a href="http://anonlogs.netco.com/anonhygiene.log.200809170130.gz">anonhyg iene.log.200809170130.gz</a><br/> </pre> <hr> </body> </html> UNQUOTE And this is the LFTP log: QUOTE 2009-09-11 15:49:48 anonlogs.netco.com ---- Resolving host address... 2009-09-11 15:49:49 anonlogs.netco.com ---- 1 address found: 83.138.166.138 2009-09-11 15:49:49 anonlogs.netco.com ---- Connecting to anonlogs.netco.com (83.138.166.138) port 80 2009-09-11 15:49:49 anonlogs.netco.com ---- Sending request... 2009-09-11 15:49:49 anonlogs.netco.com ---> HEAD /logList.php HTTP/1.1 2009-09-11 15:49:49 anonlogs.netco.com ---> Host: anonlogs.netco.com 2009-09-11 15:49:49 anonlogs.netco.com ---> User-Agent: lftp/3.7.15 2009-09-11 15:49:49 anonlogs.netco.com ---> Accept: */* 2009-09-11 15:49:49 anonlogs.netco.com ---> Authorization: Basic Yfdgdfgc2bm5NUXBo 2009-09-11 15:49:49 anonlogs.netco.com ---> Connection: keep-alive 2009-09-11 15:49:49 anonlogs.netco.com ---> 2009-09-11 15:49:49 anonlogs.netco.com <--- HTTP/1.1 200 OK 2009-09-11 15:49:49 anonlogs.netco.com <--- Date: Fri, 11 Sep 2009 14:49:49 GMT 2009-09-11 15:49:49 anonlogs.netco.com <--- Server: Apache/2.0.46 (Red Hat) 2009-09-11 15:49:49 anonlogs.netco.com <--- X-Powered-By: PHP/4.4.9 2009-09-11 15:49:49 anonlogs.netco.com <--- Keep-Alive: timeout=10, max=1000 2009-09-11 15:49:49 anonlogs.netco.com <--- Connection: Keep-Alive 2009-09-11 15:49:49 anonlogs.netco.com <--- Content-Type: text/html 2009-09-11 15:49:49 anonlogs.netco.com <--- 2009-09-11 15:49:49 anonlogs.netco.com ---- Sending request... 2009-09-11 15:49:49 anonlogs.netco.com ---> HEAD / HTTP/1.1 2009-09-11 15:49:49 anonlogs.netco.com ---> Host: anonlogs.netco.com 2009-09-11 15:49:49 anonlogs.netco.com ---> User-Agent: lftp/3.7.15 2009-09-11 15:49:49 anonlogs.netco.com ---> Accept: */* 2009-09-11 15:49:49 anonlogs.netco.com ---> Authorization: Basic Yfdgdfgc2bm5NUXBo 2009-09-11 15:49:49 anonlogs.netco.com ---> Connection: keep-alive 2009-09-11 15:49:49 anonlogs.netco.com ---> 2009-09-11 15:49:49 anonlogs.netco.com <--- HTTP/1.1 403 Forbidden 2009-09-11 15:49:49 anonlogs.netco.com <--- Date: Fri, 11 Sep 2009 14:49:49 GMT 2009-09-11 15:49:49 anonlogs.netco.com <--- Server: Apache/2.0.46 (Red Hat) 2009-09-11 15:49:49 anonlogs.netco.com <--- Accept-Ranges: bytes 2009-09-11 15:49:49 anonlogs.netco.com <--- Content-Length: 4071 2009-09-11 15:49:49 anonlogs.netco.com <--- Keep-Alive: timeout=10, max=999 2009-09-11 15:49:49 anonlogs.netco.com <--- Connection: Keep-Alive 2009-09-11 15:49:49 anonlogs.netco.com <--- Content-Type: text/html 2009-09-11 15:49:49 anonlogs.netco.com <--- 2009-09-11 15:49:49 anonlogs.netco.com ---- Closing HTTP connection --- Finish Fri 11/09/2009 15:49:49.30 UNQUOTE The LFTP command being used is similar to this: LFTP -c 'open http://anonlogs.netco.com/logList.php; mirror -c -r -p --ignore-time --newer-than=now-14days -i .+; close -a' Thanks Regards Andy ----------- Andy Krafft Xtranet Multimedia t: 0844 589 4450 Associations online --
