[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: C++ and FTP



Matthew Flaschen wrote:
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

Why not? Simplicity. It works, and then I don't spend more time on the issue.

Brgds
PAR


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]