| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
How to download multiple files?
From: Andreas Volz <lists_at_brachttal.net>
Date: Wed, 12 Dec 2007 00:17:25 +0100
Hello,
Currently I use curl to download files with this functions:
WebGet::WebGet ()
/* init the curl session */
WebGet::~WebGet ()
long WebGet::urlToFile (const string &url, const string &filename)
/* specify URL to get */
/* send all data to this function */
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *) file);
/* some servers don't like requests that are made without a user-agent
fclose (file);
My current solution is to run urlToFile() in a loop with multiple
Before I ask many stupid question perhaps you could sketch me how to
regards
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info