# C FTP program

**URL:** <https://community.unix.com/t/c-ftp-program/158700>\
**Category:** Programming\
**Created:** [January 11, 2006, 2:20am UTC](https://community.unix.com/t/c-ftp-program/158700 "2006-01-11T02:20:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjediknight](https://community.unix.com/letter_avatar/cjediknight/32/5_5575768a8748004e209b776fc1b2916d.png) [@cjediknight](https://community.unix.com/u/cjediknight)\
**Post date:** [January 11, 2006, 2:20am UTC](https://community.unix.com/t/c-ftp-program/158700/1 "2006-01-11T02:20:00Z")

</div>

Hi,  
Can somebody help me with this problem. I was ask to make a C Program that can FTP file file both downloading and uploading file in remote server. How can I do this, or is there any FTP library I can use for this one. I am using HP Unix 11.0

---

<div class="post-metadata">

**Author:** ![jim\_mcnamara](https://community.unix.com/letter_avatar/jim_mcnamara/32/5_5575768a8748004e209b776fc1b2916d.png) [@jim\_mcnamara](https://community.unix.com/u/jim_mcnamara)\
**Post date:** [January 11, 2006, 10:08am UTC](https://community.unix.com/t/c-ftp-program/158700/2 "2006-01-11T10:08:52Z")

</div>

Consider calling the shell from inside the C program - call the script with popen() so you can get errors and warnings.

There are a lot of examples of 'automating ftp' in shell on this forum. Start searching the FAQ.

This is definitely plan B because it's more difficult:

If you need to call ftp natively, then look into curl, which is available for  
HPUX at the Porting Centre:

[http://hpux.connect.org.uk/hppd/cgi-bin/wwwtar?/hpux/Networking/WWW/curl-7.15.0/curl-7.15.0-hppa-11.11.depot.gz](http://hpux.connect.org.uk/hppd/cgi-bin/wwwtar?/hpux/Networking/WWW/curl-7.15.0/curl-7.15.0-hppa-11.11.depot.gz)

Why can you not use perl? or a shell script?
