1752725 Members
5523 Online
108789 Solutions
New Discussion юеВ

C or C++ FTP API package

 
nuwendam
Occasional Advisor

C or C++ FTP API package

Hi,

I'm looking for a C or C++ FTP API package.

Does anyone knows if this is available with Hp_ux ?

Thanks.
3 REPLIES 3
Gregory Fruth
Esteemed Contributor

Re: C or C++ FTP API package

Perhaps libwww will do what you want. It may be
more complicated than you need, however, because
it's multi-protocol: http://www.w3.org/Library

There's also a commercial FTP-only API
developed for the (awesome) free FTP client ncftp:
http://ncftp.com/libncftp

Of couse, it's quite easy to do this sort of
thing in Perl using Net::FTP.

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;
A. Clay Stephenson
Acclaimed Contributor

Re: C or C++ FTP API package

Hi Erick:

When I need to do that thesedays with C, I simply build a perl script using the Net::FTP
module. The C program builds the script file 'on the fly' and then does a system call.

Clay
If it ain't broke, I can fix that.
rick jones
Honored Contributor

Re: C or C++ FTP API package

you might consider libcurl. i've not used it for FTP myself, but i use it for HTTP in netperf3, and am thinking of using it for FTP in netperf3.

there is no rest for the wicked yet the virtuous have no pillows