C++ and FTP
Per Anton R?nning
pa-ronn at online.no
Wed Oct 29 20:17:38 UTC 2008
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
More information about the fedora-list
mailing list