Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

How do I FTP a file from my program?

by vroom (His Eminence)
on Jan 20, 2000 at 23:15 UTC ( [id://2225]=perlquestion: print w/replies, xml ) Need Help??

vroom has asked for the wisdom of the Perl Monks concerning the following question: (http and ftp clients)

How do I FTP a file from my program?

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: How do I FTP a file from my program?
by vroom (His Eminence) on Jan 20, 2000 at 23:26 UTC
    You need to get Net::FTP from CPAN.
    use NET::FTP; my $hostname='superwarez.com'; my $user='warez'; my $password='warez'; my $ftp=Net::FTP -> new($hostname) or die ("Connect failed"); $ftp->login($username,$password); $ftp->binary; $ftp->cwd("/pub/uploads"); $ftp->put("mystuff.txt"); $ftp->get("warezlist.txt"); $ftp->quit
Re: How do I FTP a file from my program?
by Anonymous Monk on Apr 20, 2002 at 04:48 UTC
    $ftp->get("warezlist.txt");
    Hmmm.... LoL Sounds like a useful function if I ever heard one!

    Originally posted as a Categorized Answer.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://2225]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-24 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found