C++ and FTP

Matthew Flaschen matthew.flaschen at gatech.edu
Wed Oct 29 20:00:18 UTC 2008


Per Anton R?nning wrote:
> Example:
> -------------
> char  curlcmd[100];
> char url[]="http://<url....>",char receiving_file[]="/<some
> directory>/recfile.html"
> //setup url command
>  sprintf(curlcmd,"curl %s > %s",url,receiving_file);
>  i=system(curlcmd);

Why would you use curl with system, when it has a well-documented API
(http://curl.haxx.se/libcurl/c/)?

Matt Flaschen




More information about the fedora-list mailing list