Joel Berger
Joel Berger

Reputation: 20280

HTTP::Tiny like FTP handling

I have a module (Alien::GSL) which I am working on. Currently it uses LWP::Simple to do three calls, an FTP directory listing, an FTP file download and an HTTP file download. The problem is that for only a few calls, LWP::Simple has a rather large dep. chain. I tried quickly to switch to HTTP::Tiny but as the name should have told me, it dies on FTP requests (anonymous).

Does anyone have any suggestions for lightweight a FTP module. Preferably a lightweight HTTP/FTP module. If not then LWP::Simple works.

Upvotes: 2

Views: 246

Answers (1)

Drav Sloan
Drav Sloan

Reputation: 1562

libnet's Net::FTP only requires the IO modules (standard with perl from 5.004), and itself is pretty lightweight. Libnet only supports FTP, NNTP, SMTP and POP3 however, so you can't use it for HTTP.

Maybe you can use it in combination with HTTP::Tiny?

Upvotes: 2

Related Questions