Output:use LWP::Simple; use warnings; use strict; my $url = 'ftp://ftp.symantec.com/public/english_us_canada/antivirus_d +efinitions/norton_antivirus_corp/'; my $content = get($url); print "$content\n"; #prints unix filesytem listing
I was hoping to get the html page version something like this:total 230628 -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 987053 Jan 23 15: +53 20040123-007-i32-1.exe -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 1325979 Jan 23 15: +53 20040123-007-i32-2.zip -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 1137726 Jan 23 15: +53 20040123-007-i32-3.zip -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 1137848 Jan 23 15: +53 20040123-007-i32-4.zip -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 4599122 Jan 23 15: +53 20040123-007-i32.exe -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 3109802 Jan 23 15: +53 20040123-007-o32.zip -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 8658502 Jan 23 15: +53 20040123-007-unix.sh -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 7637800 Jan 23 15: +53 20040123-007-x86.exe -rwxrwxr-x 1 hevasymantec-ftp4 hevasymantec-ftp4 987048 Jan 26 18: +38 20040126-021-i32-1.exe .....more lines etc...
<HTML><HEAD><TITLE>Directory listing for /public/english_us_canada/ant +ivirus_definitions/norton_antivirus_corp/</TITLE></HEAD><BODY><h2>Cur +rent directory is /public/english_us_canada/antivirus_definitions/nor +ton_antivirus_corp/</h2><BR><HR><DD><A HREF="ftp://ftp.symantec.com:2 +1/public/english_us_canada/antivirus_definitions/"><IMG SRC="http://1 +64.214.7.246:80/-http-gw-internal-/menu.gif"> ..</A></DD><DD><A +HREF="ftp://ftp.symantec.com:21/public/english_us_canada/antivirus_de +finitions/norton_antivirus_corp/20040123-007-i32-1.exe "><IMG SRC="http://164.214.7.246:80/-http-gw-internal-/blank.gif">&nbs +p;20040123-007-i32-1.exe </A></DD><DD><A HREF="ftp://ftp.symantec.com:21/public/english_us_cana +da/antivirus_definitions/norton_antivirus_corp/20040123-007-i32-2.zip "><IMG SRC="http://164.214.7.246:80/-http-gw-internal-/binary.gif">&nb +sp;20040123-007-i32-2.zip </A></DD><DD><A HREF="ftp://ftp.symantec.com:21/public/english_us_cana +da/antivirus_definitions/norton_antivirus_corp/20040123-007-i32-3.zip ...etc.... </BODY> </HTML>
In reply to fetching ftp site info by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |