#1
  1. No Profile Picture
    Dass
    Guest
    Devshed Newbie (0 - 499 posts)
    Can someone give me a quick example of connecting to an FTP (username and password required) ?
  2. #2
  3. No Profile Picture
    diamtor
    Guest
    Devshed Newbie (0 - 499 posts)
    I hope you mean "through perl" There's a module called Net::FTP. Once you get it installed (dont know if it's available for win32), do 'perldoc Net::FTP'

    From perldoc Net::FTP:

    USAGE:
    use Net::FTP;

    $ftp = Net::FTP->new("some.host.name");
    $ftp->login("anonymous","me@here.there");
    $ftp->cwd("/pub");
    $ftp->get("that.file");
    $ftp->quit;

    hope this helps.

IMN logo majestic logo threadwatch logo seochat tools logo