FTP Library


 
Thread Tools Search this Thread
Top Forums Programming FTP Library
# 1  
Old 10-22-2008
FTP Library

What is the "best" library to deal with FTP in C programming language? I've considered libcurl and ftplib (ftplib), but libcurl is designed for HTTP-like protocols (but supports FTP) and ftplib is poor in functionality (no multi-interface, don't know whether is it thread-safe or not, no custom commands).
Any suggestions?
Has anybody experience with FTP under C?
# 2  
Old 10-22-2008
The only other decent api library is here: NcFTP Software
It provides a lot of functionalilty, but it is not free. I do not know if multi-interface is there or not, it was supposedly going to be available. Edit: I just looked and it seems to be.

You've already found the other two I know about. We used pfau's ftplib for some simple apps under RHEL 4 - I think it was.
# 3  
Old 10-22-2008
Hmmm, strange, for other languages there are a lot of perfect free libraries for FTP, e.g. Net::FTP for perl.
# 4  
Old 10-22-2008
Try this google "site:sourceforge.net ftp library"

After reading three pages of hits the only one that surfaced is alexis ftp (aftp). Try the same and see what you get that you can use.
# 5  
Old 10-24-2008
i did a lot of ftp programming with c. ftplib works fine for me.
threads are a pain in the ass just use fork() if you need to.
# 6  
Old 10-26-2008
I've choosed ftplib for now. But already have a problem: FtpLogin() failes when server responses "220 You will be disconnected after 15 minutes of inactivity." The last patch for ftplib was produced 16.09.2000. Where can I post a bug?
# 7  
Old 10-28-2008
After a few days with ftplib I've switched to libcurl and was surprised with its capabilities and stable work in comparison to ftplib.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Programming

C++ linking library to a library

Hi All, My application main engine will use a shared library where we do many operation. We are trying to implement the linear algebra operation on the shared library for that I need to link my shared library to the lapack library in /usr/lib. Below is my make file. Can you please let me... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

2. AIX

Add shared members from library to same library in a different directory

I'm trying to install libiconv to AIX 7.1 from an rpm off of the perzl site. The rpm appears to install but I get this error message. add shr4.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a add shr.o shared members from /usr/lib/libiconv.a to ... (5 Replies)
Discussion started by: kneemoe
5 Replies

3. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

4. Linux

./configure problem for libsf library due to apparently missing libdb library.

Hello, ./configure script fails to configure libsf. Please check the following last few lines of configure script error. checking for db1/db.h... no checking for db.h... yes checking for dbopen in -ldb1... no configure: error: No libdb? No libsf. But find command shows the following; ... (4 Replies)
Discussion started by: vectrum
4 Replies

5. Shell Programming and Scripting

How to change a Makefile from building static library to shared library?

Hi: I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library) Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies

6. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host=192.168.0.1 /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine 192.168.0.1 login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

7. UNIX for Advanced & Expert Users

Using FTP to check whether file is completely FTP... plz find the description below

Hi, We have some clients who will place huge files in to one of the remote server. And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients. My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies
Login or Register to Ask a Question